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

Loop improvements #22

Merged
merged 5 commits into from
Feb 14, 2024
Merged

Loop improvements #22

merged 5 commits into from
Feb 14, 2024

Conversation

randy-sab-roy
Copy link
Contributor

📖 Description

This PR improves the run loop by checking for changes in the .env which allows us to change stuff on the fly.

  • The .env is reloaded at the beginning of the loop
  • Before starting the runner, the script will now validate that the image exist, and attempt to pull it if it doesn't.
  • The script will check for a SCHEDULE_SHUTDOWN flag in the .env and will shutdown if it is set to true. This allows us to turn off the runner when it has completed its current job.
  • SIGTERM events will now be intercepted by the script to allow the cleanup to work when it is running as a service

Copy link
Member

@remi remi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@randy-sab-roy randy-sab-roy merged commit a76e073 into main Feb 14, 2024
1 check passed
@randy-sab-roy randy-sab-roy deleted the loop-improvements branch February 14, 2024 18:16
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