Skip to content

Adding Tasks To A Celery Queue On An Infinite Loop

Adding Tasks to a Celery Queue on an Infinite Loop#

Sometimes you need to continuously do a certain task on an interval.

Oftentimes people use cron, but it isn’t the correct tool in my opinion.

You can also use a python while True: loop with sleep()s.

You could use timeloop

If you are using celery you can use celery.beat for periodic tasks

Sources#