You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the above service, defaultJobOptions is not defined when instanciating QueueService, so by default, jobs are always retained.. This is not what is expected for the image.transform queue.
So we can configure options in the mixin definition:
The problem here is that now, the mail.send queue will drop completed and failed jobs, which is not what is expected neither.
I should define the mail.send queue inside the queues 's service prop. But this will really create the queue inside this service, which is not what I want.
Is there a way to manage this sort of usecase? I though I could simply create actions inside the task-worker service, which create jobs here. So the QueueService mixin would be set only in this service. All other services would only call actions to this one.
Any thoughts appreciated, thanks.
The text was updated successfully, but these errors were encountered:
I use moleculer-bull to manage multiple queues which have each different job options.
Here is a simplified setup:
If a create a job inside the above service, everything is fine.
image.transform
queue drops all complete and fail jobs as soon as they are done.Now I create an other service, which needs to create jobs:
In the above service, defaultJobOptions is not defined when instanciating QueueService, so by default, jobs are always retained.. This is not what is expected for the
image.transform
queue.So we can configure options in the mixin definition:
The problem here is that now, the
mail.send
queue will drop completed and failed jobs, which is not what is expected neither.I should define the
mail.send
queue inside thequeues
's service prop. But this will really create the queue inside this service, which is not what I want.Is there a way to manage this sort of usecase? I though I could simply create actions inside the
task-worker
service, which create jobs here. So the QueueService mixin would be set only in this service. All other services would only call actions to this one.Any thoughts appreciated, thanks.
The text was updated successfully, but these errors were encountered: