Timeouts, retries and failures
Timeouts
timeout: says how long a job, or a step, may run. When it runs out, the running step gets SIGTERM, then SIGKILL 10 seconds later, with every process it started. The step and its job end timed_out, which reads as failure in CEL. A job without timeout: gets 6 hours, or the server's HOD_JOB_TIMEOUT; HOD_MAX_JOB_TIMEOUT caps every job.
Retries
retry: runs a job that didn't succeed again, as a new attempt, on any runner. It is a list of rules; the first one that matches and has attempts left runs the job again. retry: 3 is short for [{max: 3}].
Cancelled and superseded jobs are never retried, and neither are jobs that fail with reason config (an image that doesn't exist, say) or bad_output.
Allowed failures
allow_failure: true allows every failure, timeout and error; {exit_codes: [...]} allows failures of a step that exited with one of those codes. A job allowed to fail keeps its real result, marked allowed, and reads as a success everywhere else: the jobs that need it run, jobs.<name>.result is "success", and the run can succeed. It has no outputs.
On a step, the step's failure doesn't fail the job, and later steps run. Retries come first: only a failure no rule retries is allowed.