Celery task class or function is not registered
Reports an unregistered task in Celery Beat Schedule
Example:
#settings.py
CELERY_BEAT_SCHEDULE = {
'task_name': {
'task': 'example_app.tasks.task_name', # path to a task represented by a class or function
'schedule': 3.0,
},
}
#example_app/tasks.py
@app.task()
def taskName():
pass
class TaskName(Task):
pass
If a task class doesn't Task in inheritance or task function doesn't have the necessary decorators, it wouldn't be considered as registered
Locating this inspection
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
BeatScheduleCeleryTaskInspection- Via Settings dialog
Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Django, 243.23132 |
Last modified: 03 December 2024