-
Hi, we've created a boss worker for a job queue, and in the job handler we call We want the job to retry whenever the job handler throws an error and calls I tried printing out the output of When the job correctly retries after the
but most of the time the job goes straight to completed and we get
I tried making it so that job.fail is called a second time after a delay if the first on didn't retry, but it still doesn't correctly retry and I get
Just wondering why this behaviour is inconsistent and anyway to resolve? Is there some concurrency issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
If you are using work(), it will automatically call fail() or complete() internally. Once a job reaches complete state, it can't be marked as failed. Would you add more code to examples to show how you got this job id? |
Beta Was this translation helpful? Give feedback.
If you are using work(), it will automatically call fail() or complete() internally. Once a job reaches complete state, it can't be marked as failed.
Would you add more code to examples to show how you got this job id?