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

Fix accounting of pidfiles per process (when using multiple processes) #197

Conversation

jsantos
Copy link
Contributor

@jsantos jsantos commented Mar 29, 2018

Fixes #191

This regression was introduced by #190, due to a minor refactor on the method to retrieve the pidfiles for a particular host's roles.

In sum, the sidekiq_roles variable was being mutated by a .reject! statement and would only work properly for the first method call (for more context check the corresponding issue).

I took the liberty to do a few styling corrections, suggested by Rubocop. Also included the breaking change from sidekiq_role to sidekiq_roles that happened on 1.0.0 to the corresponding changelog entry.

@seuros
Copy link
Owner

seuros commented Apr 3, 2018

Can you rebase & squash?

@jsantos jsantos force-pushed the bugfix/pidfiles_are_not_being_accounted_correctly branch from 7303e7b to e6ffa33 Compare April 3, 2018 23:43
@jsantos
Copy link
Contributor Author

jsantos commented Apr 3, 2018

@seuros Done!

@seuros seuros merged commit 7edb22a into seuros:master Apr 4, 2018
@seuros
Copy link
Owner

seuros commented Apr 4, 2018

Thank you

@jsantos jsantos deleted the bugfix/pidfiles_are_not_being_accounted_correctly branch April 4, 2018 00:49
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

Successfully merging this pull request may close these issues.

2 participants