-
Notifications
You must be signed in to change notification settings - Fork 816
Closed
Labels
Description
Describe the bug
Recently (commit a6a21d3) a dependency on celery was introduced. Probably it was meant to be triggered only, if celery is active (which would cause the import of tasks.py). But in reality it is also triggered, if other task queue handlers are running (in my case: huey).
To Reproduce
Add oauth2_provider and huey to INSTALLED_APPS and ensure, that the celery module is not available.
python3 manage.py runserver will fail due to the missing celery module.
Expected behavior
I could imagine the following behaviors to be more desirable:
- A) a missing
celerymodule is silently ignored - B)
celeryis only imported, ifceleryis found insettings.INSTALLED_APPS - C) the active task queue manager (e.g.
celeryorhuey) is detected (e.g. by inspectingsettings.INSTALLED_APPS) and the relevant decorator is selected
Version
1.7.0
- I have tested with the latest published release and it's still a problem.
- I have tested with the master branch and it's still a problem.
Additional context