[文档]classHeart(bootsteps.StartStopStep):"""Bootstep sending event heartbeats. This service sends a ``worker-heartbeat`` message every n seconds. Note: Not to be confused with AMQP protocol level heartbeats. """requires=(Events,)def__init__(self,c,without_heartbeat=False,heartbeat_interval=None,**kwargs):self.enabled=notwithout_heartbeatself.heartbeat_interval=heartbeat_intervalc.heart=Nonesuper().__init__(c,**kwargs)