M
M
Mutalimov952017-07-24 21:00:27
Django
Mutalimov95, 2017-07-24 21:00:27

How to make user-scheduled periodic tasks with celery?

How to make an interface for users to add recurring tasks (or just tasks) using celery? Used by: celery 4, Rabbitmq, Django. We climbed all the documentation, as well as a pile of articles, nowhere about this is not a word.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Kuzmichev, 2017-07-31
@Assargin

The same documentation indicates the possibility of writing your own scheduler classes instead of the default PersistentScheduler
one. They also write about django-celery-beat - a convenient solution for the admin panel, in which you can edit the task schedule.

A
Alexander, 2017-09-14
@vintkor

That's how I did

date = datetime.timedelta(seconds=1200))
disable_temporary_level.apply_async(countdown=date.total_seconds(), kwargs={'level_history_id': self.pk})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question