mirror of
https://github.com/actions-runner-controller/actions-runner-controller.git
synced 2026-10-18 17:07:35 +02:00
Reduce ephemeral runner status contention (#4692)
This commit is contained in:
@@ -828,6 +828,15 @@ func (r *EphemeralRunnerSetReconciler) cleanUpEphemeralRunners(ctx context.Conte
|
||||
var errs []error
|
||||
log.Info("Cleanup pending or running ephemeral runners")
|
||||
for _, ephemeralRunner := range ephemeralRunnerState.pending {
|
||||
if ephemeralRunner.HasJob() {
|
||||
log.Info(
|
||||
"Skipping ephemeral runner since it is running a job",
|
||||
"name", ephemeralRunner.Name,
|
||||
"workflowRunId", ephemeralRunner.Status.WorkflowRunID,
|
||||
"jobId", ephemeralRunner.Status.JobID,
|
||||
)
|
||||
continue
|
||||
}
|
||||
if waitForRunnerID(ephemeralRunner) {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user