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

How are atomic operations on Resume(Job) and Pause(Job) guaranteed in StdScheduler? #128

Open
miJasonK opened this issue Apr 3, 2024 · 1 comment

Comments

@miJasonK
Copy link

miJasonK commented Apr 3, 2024

In the StdScheduler object, if the Remove Job succeeds but the Push Job fails, the task will be lost. How should this scenario be supported?

@reugn
Copy link
Owner

reugn commented Apr 3, 2024

@miJasonK, this is only relevant for custom JobQueue implementations, as no errors can occur using the standard in-memory queue. And it's a broader question - what happens if the job fails to be rescheduled? I would leave error handling to the implementation, including the application of a retry mechanism and the use of a fallback queue if the backend storage is unavailable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants