-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not try to delete runner if script already running
We catch Octokit::Conflict exception with the "Already exists" message to ensure the `register_runner` function is idempotent. If it's run a second time, it fails with this exception. Recently, we found a few examples with non-idempotent results. If this label run again after the start of the script, it fails with the following error: Failed to start transient service unit: Unit runner-script.service already exists This PR fixes this issue by checking if the script is already running before trying to delete the runner.
- Loading branch information
Showing
2 changed files
with
37 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters