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

Add graceful shutdown for Actions #55

Open
gbraad opened this issue Jan 7, 2025 · 1 comment
Open

Add graceful shutdown for Actions #55

gbraad opened this issue Jan 7, 2025 · 1 comment
Assignees

Comments

@gbraad
Copy link
Collaborator

gbraad commented Jan 7, 2025

Observe from 'Hang around' step

until ! podman exec ... systemctl is-active --quiet countdown.timer
do
    sleep 5
done
# cleanup work ?
...
   podman exec ... echo -e "# Countdown timer reached.\n\nYou have 5 minutes remaining." > /tmp/countdown.md
   # trigger action inside the container?
   podman exec ... code /tmp/countdown.md
   sleep 300
...
echo "Finished by reaching countdown"
@gbraad gbraad self-assigned this Jan 7, 2025
@gbraad
Copy link
Collaborator Author

gbraad commented Jan 7, 2025

https://github.com/gbraad-devenv/countdown-test
I am not convinced yet. This is more of a thing for use with a personal minecraft server; inform users of shutdown, and then copy world file as artifact.

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

No branches or pull requests

1 participant