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
I'm using BULL to kick on integration jobs, and I need to maintain a lastSuccessSyncTimeStamp. I've tried everything.
The most obvious solution is to simply 'update' the job data in the 'completed' event
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description
I'm using BULL to kick on integration jobs, and I need to maintain a lastSuccessSyncTimeStamp. I've tried everything.
The most obvious solution is to simply 'update' the job data in the 'completed' event
integrationQueue.on('completed', async (job, result) => {
await job.update({...job.data, lastSyncTimeStamp: Date.now()});
});
I've also tried it in the .process of the job
Minimal, Working Test code to reproduce the issue.
(An easy to reproduce test case will dramatically decrease the resolution time.)
Bull version
Additional information
The text was updated successfully, but these errors were encountered: