Authentication classes to be used by the Task API view. These should be Django Rest Framework (DRF) authentication classes. See DRF's Authentication guide for more info.
The task backend class. Defaults to task_api.backends.celery.CeleryBackend
, which is the only built-in backend.
A list of Task
classes to be provided by the API. For example:
TASK_API_BACKGROUND_CLASSES = [
'myapp.background.MyTask'
]
You can also use class objects directly. For example:
from myapp.background import MyTask
TASK_API_BACKGROUND_CLASSES = [MyTask]
Note that the above example uses the class definition, not a class instance.
Permissions classes to be used by the Task API view. These should be Django Rest Framework (DRF) permissions classes. See DRF's Permissions guide for more info.