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

When running on multiple servers, worker-stop removes all worker entries from Redis, not just local ones #27

Open
brianV opened this issue Oct 31, 2017 · 3 comments

Comments

@brianV
Copy link
Contributor

brianV commented Oct 31, 2017

In our usage, we have multiple machines running resque workers.

When the 'resque:worker-stop --all' command is issued, the local workers are stopped and all the entries for workers on all machines are removed.

Workers which do not exist on the local machine (and therefore cannot be terminated) should not be removed from the active workers list.

@PhilETaylor
Copy link
Member

yeah sounds about right :-(

Im just about to go live in a multi server environment - I would have hit this soon, so thanks for reporting, I'll investigate a distributed way of terminating all workers on all machines - maybe by setting a kill switch in redis that workers look for every poll...

@brianV
Copy link
Contributor Author

brianV commented Oct 31, 2017 via email

@PhilETaylor
Copy link
Member

This is still an issue (Nov 2019)

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