events.rst 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. =======================
  2. List of Worker Events
  3. =======================
  4. This is the list of events sent by the worker.
  5. The monitor uses these to visualize the state of the cluster.
  6. Task Events
  7. -----------
  8. * task-received(uuid, name, args, kwargs, retries, eta, hostname, timestamp)
  9. Sent when the worker receives a task.
  10. * task-accepted(uuid, hostname, timestamp)
  11. Sent just before the worker executes the task.
  12. * task-succeeded(uuid, result, hostname, timestamp)
  13. Sent if the task executed successfully.
  14. (EDIT: Should probably add the time it took to execute the task here?
  15. Then we could get rid of the old statistics code.)
  16. * task-failed(uuid, exception, traceback, hostname, timestamp)
  17. Sent if the execution of the task failed.
  18. * task-retried(uuid, exception, traceback, hostname, delay, timestamp)
  19. Sent if the task failed, but will be retried in the future.
  20. (**NOT IMPLEMENTED**)
  21. Worker Events
  22. -------------
  23. * worker-online(hostname, timestamp)
  24. The worker has connected to the broker and is online.
  25. * worker-heartbeat(hostname, timestamp)
  26. Sent every minute, if the worker has not sent a heartbeat in 2 minutes,
  27. it's considered to be offline.
  28. * worker-offline(hostname, timestamp)
  29. The worker has disconnected from the broker.