Dynamically Changing Celery Beat Settings

Viewed 2688

Is there a way to tell celerybeat to change settings for a specific task while it is running?

The utility of this is best illustrated in this example:

I have a periodic task that checks a value every 30 seconds. Sometimes, based on an external trigger (that I can't predict) I will want this task to increase the polling frequency to 10s - for a few minutes.

Is this doable in a manageable way? I know I can change the task config and reload celery but that seems a messy way to do things...

1 Answers
Related