Problem importing celery to enable tasks
See original GitHub issueSetting EXPLORER_TASKS_ENABLED = True
causes the following exception:
ImportError: cannot import name 'task' from 'celery' (D:\Users\my-user\projects\my-project\venv-windows\lib\site-packages\celery\__init__.py)
Django==3.2.9
django-sql-explorer==2.4.2
celery==5.2.1
Issue Analytics
- State:
- Created a year ago
- Comments:12 (8 by maintainers)
Top Results From Across the Web
django celery import function not working - Stack Overflow
I have managed to configure celery with redis and execute the task that is as an example in the documentation but when I...
Read more >Can not import Celery module error ..... · Issue #3786 - GitHub
Using command sudo service celeryd start , i am able to start worker but when i add my project to celeryd config file...
Read more >Calling Tasks — Celery 5.2.7 documentation
Applying an object supporting the calling API (e.g., add(2, 2) ) means that the task will not be executed by a worker, but...
Read more >Tasks — Celery 3.1.11 documentation
Tasks ¶. Tasks are the building blocks of Celery applications. A task is a class that can be created out of any callable....
Read more >Celery does not register tasks - Django Forum
from celery import shared_task # app = Celery('tasks', ... task events: OFF (enable -E to monitor tasks in this worker) ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok the boto3 stuff wasn’t bad - the celery stuff is proving to be a pain. Are you ok if we just do celery 5+?
Ok fixed the 3.7 issue by pinning a dependency I feel like this is ready for review. Unit tests are passing and I manually tested against celery4/boto3. I’ll test against celery5 when I get some time