Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Celery App not working!!!!! #2

Open
ChuckDuecez9 opened this issue Dec 7, 2020 · 1 comment
Open

Celery App not working!!!!! #2

ChuckDuecez9 opened this issue Dec 7, 2020 · 1 comment

Comments

@ChuckDuecez9
Copy link

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

@woj-ciech
Copy link
Owner

woj-ciech commented Dec 15, 2020

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:
celery/celery#6363
celery/celery#6381

Edit:
Fixing README commit --> 3f85190

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants