-
Notifications
You must be signed in to change notification settings - Fork 6
Use default RUNNER_MANUALLY_TRAP_SIG
#634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use default RUNNER_MANUALLY_TRAP_SIG
#634
Conversation
💡 If you need a new version, create a new release after merge. |
RUNNER_MANUALLY_TRAP_SIG
RUNNER_MANUALLY_TRAP_SIG
RUNNER_MANUALLY_TRAP_SIG
@@ -42,14 +42,11 @@ COPY entrypoint.sh / | |||
|
|||
VOLUME /var/lib/docker | |||
|
|||
# docker-init sends the signal to children | |||
ENV RUNNER_MANUALLY_TRAP_SIG= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default, RUNNER_MANUALLY_TRAP_SIG
is set to 1.
https://github.com/actions/runner/blob/3486c54ccbb8181b3bb46e1a3f22c85f79aa5414/images/Dockerfile#L38
If RUNNER_MANUALLY_TRAP_SIG
is set, run.sh waits for the listener when a signal is received.
https://github.com/actions/runner/blob/3486c54ccbb8181b3bb46e1a3f22c85f79aa5414/src/Misc/layoutroot/run.sh#L29
💡 If you need a new version, create a new release after merge. |
Problem to solve
Currently, the job is stuck for about 20 minutes when the pod is accidentally terminated. It finally causes the job timeout or "lost communication" error.
This changes
RUNNER_MANUALLY_TRAP_SIG
environment variable to the default value of upstream image. By this change, the job will be canceled shortly on pod termination.Issue