Does Failed Event happen only after retries are exhausted? #3420
Unanswered
JoshuaHintze
asked this question in
Q&A
Replies: 1 comment
-
|
There is a global event you can listen for this purpose: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Say I have a job with 3 retries. My question is will the work failed event happen only after the 3rd retry failes or will it get called on every fail job attempt? I didn't see anything in the docs about this.
worker.on('failed', (job: Job | undefined, error: Error, prev: string) => {
// Do something with the return value.
});
Beta Was this translation helpful? Give feedback.
All reactions