Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: upgrade bullmq versions #3105

Merged
merged 5 commits into from
Mar 29, 2023
Merged

fix: upgrade bullmq versions #3105

merged 5 commits into from
Mar 29, 2023

Conversation

scopsy
Copy link
Contributor

@scopsy scopsy commented Mar 29, 2023

What change does this PR introduce?

We have mismatched version between the difference services. Updated all versions to be the same.

return {
...this.bullConfig,
lockDuration: 90000,
concurrency: 200,
settings: {
backoffStrategies: this.getBackoffStrategies(),
backoffStrategy: this.getBackoffStrategies(),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was refactored to a function instead of object since version 2

Comment on lines -69 to -74
public createScheduler(name: string, config: QueueBaseOptions) {
this._queueScheduler = new QueueScheduler(name, config);

return this._queueScheduler;
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scheduler is not needed because it is now taken care of by the Worker class

Copy link
Contributor

@p-fernandez p-fernandez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good improvements.
🌟

@@ -214,24 +209,18 @@ export class WorkflowQueueService {
}

private getBackoffStrategies = () => {
return {
[BackoffStrategiesEnum.WEBHOOK_FILTER_BACKOFF]: async (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The enum is not needed now then. 🙂

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We still use it to specify when adding the actual job, it is accessed in the "Type" param. For now we only have one type, but might expand it in the future so will leave this for now

@scopsy scopsy added this pull request to the merge queue Mar 29, 2023
Merged via the queue into next with commit 021f3ae Mar 29, 2023
@scopsy scopsy deleted the align-bullmq-versions branch March 29, 2023 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants