你正在阅读 Celery 3.1 的文档。开发版本文档见:
此处.
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.
|
-
start()[源代码]
-
stop()[源代码]