Commit Graph

20 Commits (30029567f799cb3db514f816b8948dffcde3602f)

Author SHA1 Message Date
rowan-allspice 30029567f7
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>
(cherry picked from commit d1d3cad4b0bfd0bfc5df344306f304043ff63223)

Conflicts:
	internal/pkg/config/config.example.yaml
	internal/pkg/config/config.go
	scripts/run.sh
	trivial context conflicts
2024-06-03 15:14:50 +02:00
TheFox0x7 15e328a8a5 Add opencontainer labels to container (#195)
Closes: forgejo/runner#162
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/195
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: TheFox0x7 <thefox0x7@gmail.com>
Co-committed-by: TheFox0x7 <thefox0x7@gmail.com>
2024-05-19 14:20:33 +00:00
Mai-Lapyst 164e1008e5
Update release notes 2024-04-23 20:08:59 +02:00
TheFox0x7 5539ef7275
add release notes 2024-04-10 23:55:42 +02:00
Earl Warren 9b504f7b47
upgrade to ACT v1.20.1
Fixes: https://code.forgejo.org/forgejo/runner/issues/165
2024-03-24 13:02:18 +01:00
Earl Warren 4a9d9b9e64
RELEASE-NOTES: codeberg.org special poll frequency 2024-03-21 16:55:27 +01:00
Earl Warren b3fb495844
RELEASE-NOTES: document the {download,upload}-artifact@v4 caveat 2024-03-21 14:56:13 +01:00
Earl Warren ddd2eb7be9
update release notes for 3.4.0 2024-03-11 22:16:23 +07:00
Earl Warren 2359531a9e
upgrade to act v1.20.0 2024-03-11 21:42:34 +07:00
Earl Warren 45c67b92f6
upgrade to act v1.19.0 2023-12-02 18:02:29 +01:00
Earl Warren f6eadb933a
update 3.2.0 release notes 2023-11-11 12:17:57 +01:00
Earl Warren c31664dce4
update 3.2.0 release notes 2023-11-10 22:41:46 +01:00
Earl Warren e934c2a70d
[FORGEJO] update the 3.1 release notes 2023-11-09 13:06:46 +01:00
Earl Warren f0dc5e90a0
[FORGEJO] upgrade to act v1.13.0 2023-11-07 20:19:08 +01:00
Earl Warren eea67757f2
upgrade to act v1.12.0 2023-11-05 18:30:42 +01:00
Earl Warren d608ad6210
update release notes for 3.0.1 2023-10-04 16:07:50 +02:00
Earl Warren 6f26e40f80
RELEASE-NOTES: no example yet 2023-08-25 15:53:04 +02:00
Earl Warren c5f53958be
update RELEASE notes 2023-08-25 15:32:05 +02:00
Earl Warren b0aaffb661
[FORGEJO] release notes 2.5.0 2023-08-23 17:40:59 +02:00
Earl Warren 182939943f
[FORGEJO] release notes
update release notes
2023-08-23 16:03:12 +02:00