Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Aug 6, 2024
1 parent 572fda0 commit b178512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PoolManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ private async Task CleanUpRunners(List<GithubTargetConfiguration> targetConfigs)

}
else if ((runner.LastState >= RunnerStatus.Provisioned && DateTime.UtcNow - runner.LastStateTime > TimeSpan.FromMinutes(5)) ||
(DateTime.UtcNow - htzSrv.Created > TimeSpan.FromMinutes(40)))
(runner.LastState != RunnerStatus.Processing && DateTime.UtcNow - htzSrv.Created.ToUniversalTime() > TimeSpan.FromMinutes(40)))
{
_logger.LogInformation($"Removing VM that is not in any GitHub registration: {htzSrv.Name} created at {htzSrv.Created:u}");
runner.IsOnline = false;
Expand Down

0 comments on commit b178512

Please sign in to comment.