You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked the issues list
for similar or identical enhancement to an existing feature.
I have checked the pull requests list
for existing proposed enhancements.
I have checked the commit log
to find out if the if the same enhancement was already implemented in the
master branch.
I have included all related issues and possible duplicate issues in this issue
(If there are none, check this box anyway).
Related Issues and Possible Duplicates
Related Issues
None
Possible Duplicates
None
Brief Summary
From my manual observation, child process from the prefork pool does not emit signal.worker_init under Windows when starting.
With this patch:
--- a/celery/concurrency/prefork.py
+++ b/celery/concurrency/prefork.py
@@ -78,6 +78,7 @@ def process_initializer(app, hostname):
app=app)
from celery.worker import state as worker_state
worker_state.reset_state()
+ signals.worker_init.send(sender=None)
signals.worker_process_init.send(sender=None)
first the Django worker_fixup is installed (in worker_init signal callback) and then Django fixup on_worker_process_init is called (in worker_process_init signal callback).
Without this patch, Django is not initialized inside the child process (django.setup() is not called).
Design
Architectural Considerations
None
Proposed Behavior
Proposed UI/UX
Diagrams
N/A
Alternatives
None
The text was updated successfully, but these errors were encountered:
Hey @milos-u 👋,
Thank you for opening an issue. We will get back to you as soon as we can.
Also, check out our Open Collective and consider backing us - every little helps!
We also offer priority support for our sponsors.
If you require immediate assistance please consider sponsoring us.
Checklist
for similar or identical enhancement to an existing feature.
for existing proposed enhancements.
to find out if the if the same enhancement was already implemented in the
master branch.
(If there are none, check this box anyway).
Related Issues and Possible Duplicates
Related Issues
Possible Duplicates
Brief Summary
From my manual observation, child process from the prefork pool does not emit signal.worker_init under Windows when starting.
With this patch:
first the Django worker_fixup is installed (in worker_init signal callback) and then Django fixup on_worker_process_init is called (in worker_process_init signal callback).
Without this patch, Django is not initialized inside the child process (django.setup() is not called).
Design
Architectural Considerations
None
Proposed Behavior
Proposed UI/UX
Diagrams
N/A
Alternatives
None
The text was updated successfully, but these errors were encountered: