diff --git a/pkg/runner/runner_delete.go b/pkg/runner/runner_delete.go index 4e85cd7..195c130 100644 --- a/pkg/runner/runner_delete.go +++ b/pkg/runner/runner_delete.go @@ -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 {