-
I'm in love with the new bull since I migrated one project late last year. Now I am so reliant on it's extensive guides and clear implementation that I'm migrating others as well. Amazing "job handling"! (pun very much intended) I have a requirement where I need to determine when the repeatable job was last run. I found out that the Is there any way to distinguish between the first processing and later ones? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hmm, that would require something like finding the last job that was processed by the given repeatable "meta" job and then examining the |
Beta Was this translation helpful? Give feedback.
-
For anybody else looking for this, I found out that the |
Beta Was this translation helpful? Give feedback.
For anybody else looking for this, I found out that the
count
property inRepeatOptions
does exactly this. It is set to 1 for the first job and keeps incrementing for later ones. There's just a weird bug where it would reset to 1 every time the app is shut down for long but if your app doesn't shut down then it's fine.