rowan-allspice d1d3cad4b0
All checks were successful
checks / check and test (push) Successful in 22s
release-nightly / goreleaser (push) Successful in 7m56s
release-nightly / release-image (push) Successful in 10m40s
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 #107

Co-authored-by: Rowan Bohde <>
Reviewed-on: #546
Reviewed-by: Jason Song <>
Reviewed-by: Lunny Xiao <>
Co-authored-by: rowan-allspice <>
Co-committed-by: rowan-allspice <>
2024-05-27 07:38:55 +00:00
app feat: allow graceful shutdowns (#546) 2024-05-27 07:38:55 +00:00
pkg feat: allow graceful shutdowns (#546) 2024-05-27 07:38:55 +00:00