how to obtain retry info in processor? #442
Unanswered
schester44
asked this question in
Q&A
Replies: 2 comments
-
looks like i can make use of the getJobById function to get retry info |
Beta Was this translation helpful? Give feedback.
0 replies
-
Try using |
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
-
I have a job that has a retryLimit set. I want to call some other code when the retryLimit has been reached.
With bullmq, i'm able to do something like
const isLastAttempt = job.attemptsStarted === job.opts.attempts;
Does pg-boss have something similar? Struggling to find what i'm looking for in the docs.
Beta Was this translation helpful? Give feedback.
All reactions