fix(site_worker): remove watchmedo auto-restart causing BrokenPipeError loop#2418
Open
AybH26 wants to merge 1 commit into
Open
fix(site_worker): remove watchmedo auto-restart causing BrokenPipeError loop#2418AybH26 wants to merge 1 commit into
AybH26 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix(site_worker): remove watchmedo wrapper that caused restart loop (#2417)
Closes #2417
Issue
Uploading a competition bundle leaves the "unpacking" step spinning forever. The
unpack_competitionCelery task is enqueued on thesite-workerqueue but never executed, because thesite_workercontainer — although reported asUpby Docker — has no consumer attached to RabbitMQ.Root cause
The previous
site_workercommand wrapped Celery inwatchmedoso that task code edits would auto-reload:watchmedowatches the entire mounted/apptree, which includes:__pycache__/*.pycfiles written by Python on every importsrc/celerybeat-schedule*SQLite files written continuously by Celery beat itselfThese files keep changing faster than Celery can finish initializing its prefork pool. Each aborted startup leaks pool worker processes and produces a
BrokenPipeErrorinbilliard. As a result no consumer ever attaches to thesite-workerqueue and tasks pile up indefinitely.Fix
Remove the
watchmedowrapper from thesite_workercommand indocker-compose.yml: