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

Handling Job Recovery with tokio-cron-scheduler After Process Restart #84

Open
dongbin86 opened this issue Sep 27, 2024 · 0 comments
Open

Comments

@dongbin86
Copy link

I’m using tokio-cron-scheduler where job metadata and states are persisted in NATS, but the job execution logic seems to remain in memory. After restarting the process, I encountered the error:
Error getting 679a9805-f852-43b3-9257-3fbf1c75c6c9 from job code.

Questions:

How can I ensure that jobs not yet executed can be resumed or rescheduled after a restart?
Is there an existing mechanism to persist job execution logic, or do you recommend a pattern for recovery?
It seems that only SimpleJobCode and SimpleNotificationCode are implemented. How can these code parts be restored?

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

1 participant