Skip to content
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

Restructure the interrupt logic #24

Merged
merged 1 commit into from
Mar 27, 2024
Merged

Restructure the interrupt logic #24

merged 1 commit into from
Mar 27, 2024

Conversation

elisehaldane
Copy link
Collaborator

This PR creates a rcvar, gh_actions_sleep, to allow the user greater control over the timing of the interruptions throughout the loop to mitigate the risk of racing process termination against the workflow.

Both service gh_actions stop and service gh_actions forcestop require that the pkill signal be sent to the pot; killing each github-runners.${RUNNER_NAME} process is insufficient alone.

The PR also eliminates one of the conditions checking /var/run/github-runners.${RUNNER_NAME} and moves the graceful termination accordingly.

@elisehaldane elisehaldane merged commit 49a7a78 into main Mar 27, 2024
1 check passed
@elisehaldane elisehaldane deleted the patch/rc_interrupt branch March 27, 2024 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants