B
B
bQ12019-08-27 12:39:06
Django
bQ1, 2019-08-27 12:39:06

How to assign execution of a Celery task to a model field?

There is a Post model with a next_run field. Created test 10 posts. How to run the celery task at the time specified in the next_run of each of the model objects?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2019-08-27
@bQ1

some_task.apply_async(eta=obj.next_run)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question