Make sure to drain the upload queue before clean temp directory (#3125)

This commit is contained in:
Yang Cao
2024-02-02 15:37:45 -05:00
committed by GitHub
parent d1a619ff09
commit 1d82031a2c

View File

@@ -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();