jhuckaby / Cronicle

A simple, distributed task scheduler and runner with a web based UI.
http://cronicle.net
Other
3.94k stars 391 forks source link

Timed out jobs don't count as 'failed job' for chain reactions #822

Closed pedrotiag0 closed 1 month ago

pedrotiag0 commented 1 month ago

Summary

Whenever a job is timed out, it should be logged as 'failed' (according to the documentation) and the associated chain reaction (if applicable) should be executed. Currently, it is only marked as 'failed' and nothing happens regarding the chain reaction.

Steps to reproduce the problem

  1. Create any job that gets timed out. Could be just a sleep 120 sample script with a one minute timeout.
  2. Assign any job as a "Run event as failure" chain reaction. image
  3. Validate that the associated chain reaction is not executed whenever the job is executed and timed out.

Thank you for the great tool @jhuckaby !