Making only one task run at a time in celerybeat
Posted
by
Noufal Ibrahim
on Stack Overflow
See other posts from Stack Overflow
or by Noufal Ibrahim
Published on 2011-06-23T13:45:12Z
Indexed on
2011/06/23
16:22 UTC
Read the original article
Hit count: 264
I have a task which I execute once a minute using celerybeat. It works fine. Sometimes though, the task takes a few seconds more than a minute to run because of which two instances of the task run. This leads to some race conditions that mess things up.
I can (and probably should) fix my task to work properly but I wanted to know if celery has any builtin ways to ensure this. My cursory Google searches and RTFMs yielded no results.
© Stack Overflow or respective owner