fix: Exit docker container on any process exit #462

Merged
lunny merged 2 commits from davidfrickert/act_runner:fix/docker-exit-on-error into main 2024-01-30 13:47:43 +00:00
Contributor

Description

Issue described in #460

Changes

  • Edited supervisord.conf to exit if it detects any of the supervisored processes exiting.
  • minor text fix

Notes

Without this change (or something similar), if act_runner fails, then the container will stay up as a zombie container - it does nothing and does not restart. After this change, if act_runner fails (e.g. due to Gitea instance being down), then supervisord will exit and the container will be restarted.

## Description Issue described in #460 ## Changes - Edited `supervisord.conf` to exit if it detects any of the supervisored processes exiting. - minor text fix ## Notes Without this change (or something similar), if act_runner fails, then the container will stay up as a zombie container - it does nothing and does not restart. After this change, if act_runner fails (e.g. due to Gitea instance being down), then supervisord will exit and the container will be restarted.
davidfrickert added 2 commits 2024-01-11 19:03:22 +00:00
fix: Allow supervisord to exit if act_runner or docker processes error
- This fixes the issue where act_runner daemon command fails, for example due to gitea instance being unavailable but supervisord process still stays running so you essentially have a zombie container.
- With this fix, supervisord will exit if it detects any unexpected process exits - making so that the container will restart cleanly and not go into zombie mode.
#460
All checks were successful
checks / check and test (pull_request) Successful in 1m16s
ebb724fef3
First-time contributor

LGTM!

LGTM!
lunny approved these changes 2024-01-30 13:47:26 +00:00
lunny merged commit f1f9142a3c into main 2024-01-30 13:47:43 +00:00
Sign in to join this conversation.
No description provided.