Open jnoortheen opened 2 years ago
The following change fixed it
django_q/cluster.py:19
's content to except Exception:
to catch all errors
try:
apps.check_apps_ready()
except Exception:
from configurations import importer
importer.install()
import django
django.setup()
I am not sure where to report this. Can django-q include this if configurations is installed ? or django-configurations should be supporting this use-case ?
Also this happens on OSX , I think it is due to the different use of forking the process in linux and darwin
Another workaround is to create a custom django command as
import multiprocessing
multiprocessing.set_start_method("fork", force=True)
from django_q.management.commands import qcluster
class Command(qcluster.Command):
"""on OSX run workers forked"""
pass
python manage.py qcluster
fails with following tracebackBut other management tasks run without any issue.
I am using