diff --git a/Worker/src/Common/Adapter/S3Adapter.cs b/Worker/src/Common/Adapter/S3Adapter.cs index dc42b7d9a..e39f59174 100644 --- a/Worker/src/Common/Adapter/S3Adapter.cs +++ b/Worker/src/Common/Adapter/S3Adapter.cs @@ -116,9 +116,15 @@ await r.WriteResponseStreamToFileAsync(materializedFileName, false, cancellationToken) .ConfigureAwait(false); - - File.Move(materializedFileName, - targetFileName); + try + { + File.Move(materializedFileName, + targetFileName); + } + catch (IOException ioException) + { + // File already exists + } return targetFileName; }