Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a way to know the last successful completed timestamp of a repeated job #2592

Closed
Extend-Apps opened this issue May 5, 2023 · 1 comment
Labels

Comments

@Extend-Apps
Copy link

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

@stale
Copy link

stale bot commented Jul 9, 2023

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.

@stale stale bot added the wontfix label Jul 9, 2023
@stale stale bot closed this as completed Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant