SocialPath
SocialPath copied to clipboard
Celery App not working!!!!!
While installing software I incurred errors regarding "CELERY"
$~ ➜ SocialPath git:(master) celery worker -A socialpath --loglevel=debug
You are using -A
as an option of the worker sub-command:
celery worker -A celeryapp <...>
The support for this usage was removed in Celery 5.0. Instead you should use -A
as a global option:
celery -A celeryapp worker <...>
Usage: celery worker [OPTIONS]
Try 'celery worker --help' for help.
Error: no such option: -A $~ ➜ SocialPath git:(master) celery -A celeryapp worker socialpath --loglevel=debug Usage: celery [OPTIONS] COMMAND [ARGS]...
Error: Invalid value for '-A' / '--app': Unable to load celery application. The module celeryapp was not found.
AND....
$~ ➜ SocialPath git:(master) python3 manage.py makemigrations social System check identified some issues:
WARNINGS:
?: (2_0.W001) Your URL pattern '^celery-progress/' has a route that contains '(?P<', begins with a '^', or ends with a '$'. This was likely an oversight when migrating to django.urls.path().
?: (urls.W005) URL namespace 'celery_progress' isn't unique. You may not be able to reverse all URLs in this namespace
No changes detected in app 'social'
My machine is currently running Linux kali 5.9.0-kali2-amd64 #1 SMP Debian 5.9.6-1kali1 (2020-11-11) x86_64 GNU/Linux
Some changes has been made to celery 5.0. First try without parameter "--loglevel", if it won't help adjust your command to new version (https://docs.celeryproject.org/en/stable/whatsnew-5.0.html#step-1-adjust-your-command-line-invocation). If problem still persists, downgrade to previous version pip install celery=4.x
Related issues: https://github.com/celery/celery/issues/6363 https://github.com/celery/celery/issues/6381
Edit: Fixing README commit --> https://github.com/woj-ciech/SocialPath/commit/3f85190269d9031ef1173e962cdba0268414ffab