buildkite / pipeline-schema

A JSON schema for Buildkite’s pipeline file format
MIT License
31 stars 35 forks source link

Add support for signal in retry rules #52

Closed sj26 closed 1 year ago

sj26 commented 1 year ago

Retry rules are evolving new ways to match failures which may be retried. This introduces support for signal. This allows differentiating when an agent sends a signal to a job and the job doesn't handle it gracefully.

For example, this is a valid way to write a retry rule for targeting a job that failed to cancel gracefully within 10 seconds:

- command: ...
  retry:
    automatic:
     signal_reason: cancel
     signal: kill

Related to PDP-211.