Skip to content

Commit

Permalink
status is online and busy is true equal Active runner (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
whywaita authored Feb 15, 2024
1 parent 85c9082 commit a46b433
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/runner/runner_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ var (
)

func sanitizeGitHubRunner(ghRunner github.Runner, dsRunner datastore.Runner) error {
if ghRunner.GetBusy() {
// runner is busy, so not will delete
return ErrNotWillDeleteRunner
}

switch ghRunner.GetStatus() {
case StatusWillDelete:
if err := sanitizeRunner(dsRunner, MustRunningTime); err != nil {
Expand Down

0 comments on commit a46b433

Please sign in to comment.