nixpkgs/nixos/modules/services/continuous-integration/github-runner
Vincent Haupert 847774470e nixos/github-runners: restart service if exit code signals a retryable error
On some occasions, the GitHub runner service encounters errors which are
deemed retryable but result in the runner's termination. To signal a
retryable error, the runner exits with status code 2:

https://github.com/actions/runner/blob/40ed7f8/src/Runner.Common/Constants.cs#L146

To account for that behavior, this commit sets
`RestartForceExitStatus=2` which results in a service restart regardless
of using an ephemeral runner or not.
2022-11-10 11:06:04 -05:00
..
options.nix nixos/github-runners: support fine-grained personal access tokens 2022-10-19 13:50:34 +02:00
service.nix nixos/github-runners: restart service if exit code signals a retryable error 2022-11-10 11:06:04 -05:00