Timers - celery.timer

celery.timer

class celery.timer.EventTimer(event, interval=None)

Do something at an interval.

tick()

Run a event timer clock tick.

When the interval has run, the event will be triggered. If interval is not set, the event will never be triggered.

exception celery.timer.TimeoutError
The event has timed out.
class celery.timer.TimeoutTimer(timeout)

A timer that raises TimeoutError when the time has run out.

tick()

Run a timeout timer clock tick.

When timeout seconds has passed, it will raise a TimeoutTimer exception. If timeout is not set, it will never time out.

Previous topic

Platform Specific - celery.platform

Next topic

Celery Worker Daemon - celery.bin.celeryd

This Page