Skip to content

Commit d6f23bb

Browse files
author
Markus Keil
committed
reenable stuck job vanish detection
1 parent 4af2b11 commit d6f23bb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

PoolManager.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,12 +310,12 @@ private async Task CheckForStuckJobs(List<GithubTargetConfiguration> targetConfi
310310
if (stuckJob.QueueTime + TimeSpan.FromHours(2) > DateTime.UtcNow)
311311
{
312312
_logger.LogWarning($"Would mark stuck job {stuckJob.GithubJobId} vanished as it's no longer in the GitHub queued state for more than 2h.");
313-
/*stuckJob.State = JobState.Vanished;
313+
stuckJob.State = JobState.Vanished;
314314
stuckJob.CompleteTime = DateTime.UtcNow;
315-
await db.SaveChangesAsync();*/
315+
await db.SaveChangesAsync();
316316
}
317317

318-
//continue;
318+
continue;
319319
}
320320

321321
string runnerToken = owner.Target switch

0 commit comments

Comments
 (0)