act_runner/internal/pkg
rowan-allspice d1d3cad4b0 feat: allow graceful shutdowns (#546)
Add a `Shutdown(context.Context) error` method to the Poller. Calling this method will first shutdown all active polling, preventing any new jobs from spawning. It will then wait for either all jobs to finish, or for the context to be cancelled. If the context is cancelled, it will then force all jobs to end, and then exit.

Fixes https://gitea.com/gitea/act_runner/issues/107

Co-authored-by: Rowan Bohde <rowan.bohde@gmail.com>
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/546
Reviewed-by: Jason Song <i@wolfogre.com>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: rowan-allspice <rowan-allspice@noreply.gitea.com>
Co-committed-by: rowan-allspice <rowan-allspice@noreply.gitea.com>
2024-05-27 07:38:55 +00:00
..
client Bump act to v0.260.0 (#522) 2024-03-27 03:17:04 +00:00
config feat: allow graceful shutdowns (#546) 2024-05-27 07:38:55 +00:00
envcheck fix: Exit docker container on any process exit (#462) 2024-01-30 13:47:42 +00:00
labels Use gitea/runner-images by default (#529) 2024-04-02 07:38:14 +00:00
report Bump act to v0.260.0 (#522) 2024-03-27 03:17:04 +00:00
ver Refactor to new framework (#98) 2023-04-04 21:32:04 +08:00