celery.worker.heartbeat

celery.worker.heartbeat

This is the internal thread that sends heartbeat events at regular intervals.

class celery.worker.heartbeat.Heart(timer, eventer, interval=None)[源代码]

Timer sending heartbeats at regular intervals.

参数:
  • timer – Timer instance.
  • eventer – Event dispatcher used to send the event.
  • interval – Time in seconds between heartbeats. Default is 30 seconds.