@control_command()
def heartbeat(state):
 logger.debug(u'Heartbeat requested by remote.')
 dispatcher = state.consumer.event_dispatcher
 dispatcher.send(u'worker-heartbeat', freq=5, **worker_state.SOFTWARE_INFO)

@ control_command ( ) def heartbeat ( state ) : logger . debug ( u'Heartbeat requested by remote.' ) dispatcher = state . consumer . event_dispatcher dispatcher . send ( u'worker-heartbeat' , freq = 5 , ** worker_state . SOFTWARE_INFO )
simple view that a loadbalancer can check to verify that the app is up .