Timers - celery.timer¶
Managing time and events
- class celery.timer.EventTimer(event, interval=None)¶
- Do something at an interval. - interval¶
- How often we call the event (in seconds).
 - event¶
- The event callable to run every interval seconds.
 - last_triggered¶
- The last time, in unix timestamp format, the event was executed.
 - 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, timeout_msg='The operation timed out')¶
- A timer that raises TimeoutError exception when the time has run out. - timeout¶
- The timeout in seconds.
 - time_start¶
- The time when the timeout timer instance was constructed.
 - tick()¶
- Run a timeout timer clock tick. - Raises TimeoutError: - when timeout seconds has passed. If timeout is not set, it will never time out.