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
When stopping the worker, I'd like to be able to tell the jobs that they should stop. And re-queue them on other workers.
In my use-case I've implemented the method to signal that the job needs to stop, however, there's no way to stop the job without either marking it as completed or as failed.
If I re-queue the job manually, I lose the MaxFails options, if I fail the job by returning an error, work still cannot honor the MaxFails value.
How would one go about doing this? I suggest if a job returns a work.ErrSkip error , MaxFails should not be increased.
The text was updated successfully, but these errors were encountered:
When stopping the worker, I'd like to be able to tell the jobs that they should stop. And re-queue them on other workers.
In my use-case I've implemented the method to signal that the job needs to stop, however, there's no way to stop the job without either marking it as completed or as failed.
If I re-queue the job manually, I lose the MaxFails options, if I fail the job by returning an error,
work
still cannot honor the MaxFails value.How would one go about doing this? I suggest if a job returns a work.ErrSkip error , MaxFails should not be increased.
The text was updated successfully, but these errors were encountered: