From 1d82031a2cc4bb95ace076743c6cce96ca729881 Mon Sep 17 00:00:00 2001 From: Yang Cao Date: Fri, 2 Feb 2024 15:37:45 -0500 Subject: [PATCH] Make sure to drain the upload queue before clean temp directory (#3125) --- src/Runner.Worker/JobRunner.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Runner.Worker/JobRunner.cs b/src/Runner.Worker/JobRunner.cs index 14328c452..6db477214 100644 --- a/src/Runner.Worker/JobRunner.cs +++ b/src/Runner.Worker/JobRunner.cs @@ -298,6 +298,8 @@ namespace GitHub.Runner.Worker 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();