Skip to content

Commit 0c34ebf

Browse files
avoid processing runners to be killed after 6h
1 parent 0a51b61 commit 0c34ebf

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

PoolManager.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,13 @@ private async Task CleanUpRunners(List<GithubTargetConfiguration> targetConfigs)
400400
// VM younger than 6h - not cleaning yet
401401
continue;
402402
}
403+
404+
if (runner.LastState == RunnerStatus.Processing)
405+
{
406+
// VM still processing - not cleaning
407+
_logger.LogWarning($"Found a long processing runner: {runner.Hostname}");
408+
continue;
409+
}
403410

404411
// Delete before writing to db.
405412
bool _ = githubTarget.Target switch

0 commit comments

Comments
 (0)