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

Delay-job-completion action: Stop delaying when tmate is not running #104

Merged
merged 2 commits into from
Sep 8, 2023

Conversation

dvasilas
Copy link
Contributor

@dvasilas dvasilas commented Sep 8, 2023

Issue: OS-668

The delay-job-completion action is intended to be paired with the ssh-to-worker action in order to sleep and prevent a job from completing and being torn down.

There is no point in sleeping if the tmate process has been killed and a developer can no longer connect to the job.

This adds adds a check for tmate's PID in the action's sleep loop.

Exit the wait loop when it is no longer possible
for a user to connect and stop the delay.
action-delay-job-completion/action.yaml Outdated Show resolved Hide resolved
Co-authored-by: Olivier Garaud <[email protected]>
@dvasilas dvasilas merged commit 6d1fe4c into main Sep 8, 2023
2 of 3 checks passed
@dvasilas dvasilas deleted the improvement/delay-job-completion-conditionally branch September 8, 2023 17:09
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.

3 participants