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

Only allow the process that created the pidfile to remove it #35069

Closed
wants to merge 1 commit into from

Conversation

Hamms
Copy link
Contributor

@Hamms Hamms commented Jun 1, 2020

Because apparently worker processes will call their parent's at_exit when they themselves exit. See grosser/parallel#230

Testing story

I found this error because the new i18n sync down process uses the parallel gem, and it broke when run with the bin/i18n/sync-all.rb script which uses only_one. I also updated that script to independently work fine without this change, but before I did I verified that this change is sufficient for that to not break.

Reviewer Checklist:

  • Tests provide adequate coverage
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

Because apparently worker processes will call their parent's `at_exit` when they themselves exit. See grosser/parallel#230
@wjordan
Copy link
Contributor

wjordan commented Jun 9, 2020

#35225 merged with a fix for this issue

@wjordan wjordan closed this Jun 9, 2020
@Hamms Hamms deleted the only-master-can-remove-pidfile branch February 2, 2021 20:48
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