Questions tagged [class-based-tasks]
3 questions
8
votes
1 answer
How to pass a class based task into CELERY_BEAT_SCHEDULE
As seen in the docs class based tasks are a fair way to express complex logic.
However, the docs do not specify how to add your shiny newly created class based task into you CELERY_BEAT_SCHEDULE (using django)
Thing I…

Oleg Belousov
- 9,981
- 14
- 72
- 127
2
votes
0 answers
Celery class based tasks with CELERY_BEAT_SCHEDULE
I am wondering what is the correct approach here, and cannot find any data about this while googling:
Assuming I have the class:
class OkPayPaymentChecker(BasePaymentChecker):
pass
in 'nexchnage/tasks.py'
what would be the correct…

Oleg Belousov
- 9,981
- 14
- 72
- 127
0
votes
2 answers
How to keep each celery class based task in separate file in django project?
I have setup celery in my django project using official documentation at
http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html#using-celery-with-django
So my project structure is
└── mysite
├── db.sqlite3
├──…

Alok
- 7,734
- 8
- 55
- 100