Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions workers/scaleset/scaleset.go
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ func (w *Worker) consolidateRunnerState(runners []params.RunnerReference) error
slog.DebugContext(w.ctx, "runner is locked; skipping", "runner_name", runner.Name)
continue
}
defer locking.Unlock(runner.Name, false)
locking.Unlock(runner.Name, false)

if _, ok := providerRunnersByName[runner.Name]; !ok {
// The runner is not in the provider anymore. Remove it from the DB.
Expand Down Expand Up @@ -893,7 +893,6 @@ func (w *Worker) handleScaleDown() {
switch runner.RunnerStatus {
case params.RunnerTerminated, params.RunnerActive:
slog.DebugContext(w.ctx, "runner is not in a valid state; skipping", "runner_name", runner.Name, "runner_status", runner.RunnerStatus)
locking.Unlock(runner.Name, false)
continue
}
locked := locking.TryLock(runner.Name, w.consumerID)
Expand Down