rq / django-rq

A simple app that provides django integration for RQ (Redis Queue)
MIT License
1.81k stars 282 forks source link

Worker pool handles spawned process #655

Open chromium7 opened 3 months ago

chromium7 commented 3 months ago

Fix #651 Ref #650

I can't reproduce the issue in #650, but I did get the same errors in #651 Seems like its an issue with multiprocessing start method in certain OS, as was answered in this stack overflow post: https://stackoverflow.com/questions/46908035/apps-arent-loaded-yet-exception-occurs-when-using-multi-processing-in-django

This solution builds on top of @jackkinsella answer, and can be updated further to handle his specific issue.