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

Best way to stop and rebuild schedules #193

Closed
bitchkat opened this issue Jan 25, 2018 · 1 comment
Closed

Best way to stop and rebuild schedules #193

bitchkat opened this issue Jan 25, 2018 · 1 comment

Comments

@bitchkat
Copy link

I'm using FluentScheduler to manage jobs in a system that uses Apache Zookeeper for coordination. If the process loses connection to zookeeper, it needs to pause processing. When the connection to zookeeper is reestablished, we need to restart the jobs.

However, we have multiple instances of the process running on the network. Some jobs are done by all instances and some jobs are only to be performed by the elected leader.

Right now, what I'm doing is when a disconnect occurs, execute

JobManager.RemoveAllJobs(); JobManager.StopAndBlock();

When the connection is reestablished, can I create a new Registry and call
JobManager.InitializeWithoutStarting(registry);

@tallesl
Copy link
Contributor

tallesl commented Sep 2, 2018

See #214.

@tallesl tallesl closed this as completed Sep 2, 2018
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