Skip to content

Commit

Permalink
Make sure to drain the upload queue before clean temp directory
Browse files Browse the repository at this point in the history
  • Loading branch information
yacaovsnc authored and TingluoHuang committed Feb 2, 2024
1 parent d1a619f commit 64a0aa8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Runner.Worker/JobRunner.cs
Expand Up @@ -298,6 +298,8 @@ private async Task<TaskResult> CompleteJobAsync(IRunServer runServer, IExecution
jobContext.Warning(string.Format(Constants.Runner.EnforcedNode12DetectedAfterEndOfLife, actions));
}

await ShutdownQueue(throwOnFailure: false);

// Make sure to clean temp after file upload since they may be pending fileupload still use the TEMP dir.
_tempDirectoryManager?.CleanupTempDirectory();

Expand Down

0 comments on commit 64a0aa8

Please sign in to comment.