Fix audio DASH workflow: dispose source stream before delete and store S3 folder key as AudioFolderName

This commit is contained in:
2026-05-31 19:25:15 +02:00
parent 584a8833c2
commit ba9b744e5d
4 changed files with 11 additions and 18 deletions
@@ -38,11 +38,13 @@ namespace Musify.Infrastructure.MassTransit.Activities
try
{
await using var fileStream = File.OpenRead(sourceFilePath);
await audioTranscoder.TranscodeToDashAsync(
fileStream,
workingDirectory,
executeContext.CancellationToken);
await using (var fileStream = File.OpenRead(sourceFilePath))
{
await audioTranscoder.TranscodeToDashAsync(
fileStream,
workingDirectory,
executeContext.CancellationToken);
}
File.Delete(sourceFilePath);
return executeContext.Completed();