def task_revoked(event): state.event(event) monitorManager.fire(TASK_REVOKED, state, event, app)
def task_retried(event): state.event(event) monitorManager.fire(TASK_RETRIED, state, event, app)
def worker_offline(event): state.event(event) # print state,event monitorManager.fire(WORKER_OFFLINE, state, event, app)
def task_started(event): state.event(event) monitorManager.fire(TASK_STARTED, state, event, app)
def worker_online(event): state.event(event) monitorManager.fire(WORKER_ONLINE, state, event, app)
def task_received(event): state.event(event) monitorManager.fire(TASK_RECEIVED, state, event, app)
def task_sent(event): state.event(event) monitorManager.fire(TASK_SENT, state, event, app)
def task_succeeded(event): state.event(event) monitorManager.fire(TASK_SUCCEEDED, state, event, app)
def task_failed(event): # print state.alive_workers() state.event(event) monitorManager.fire(TASK_FAILED, state, event, app)