-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
I ran into issues with the approach used in celerytest:
Launching a celery worker in a new thread, which then forks of new processes causes problems. This happens because there might be locks held in other threads when celery fork()s. This happens commonly if the logging module is used since it uses thread locks. Mixing threads, thread locks and fork()s turns out to be a bad idea and unreliable: http://bugs.python.org/issue6721
I now instead start a celery worker by just launching a celery worker in a subprocess, which seems to work reliable.
pirate
Metadata
Metadata
Assignees
Labels
No labels