fix(macos): preserve audio when transcription fails
PR and Push Build/Test / build-and-test (pull_request) Failing after 11m18s

This commit is contained in:
dh
2026-09-01 11:55:15 +02:00
parent 68db6955a2
commit 84dc696ce9
6 changed files with 132 additions and 5 deletions
@@ -624,6 +624,24 @@ public sealed class MeetingRecordingCoordinator
catch (Exception exception)
{
logger.LogError(exception, "Meeting recording failed");
if (IsAzureSpeechRun(run) && !run.IsQueuedForOfflineTranscription)
{
logger.LogWarning(
"Azure Speech transcription failed; retaining recorded audio and queueing offline transcription backlog item");
run.MarkQueuedForOfflineTranscription();
try
{
await offlineTranscriptionBacklog.EnqueueAsync(
CreateOfflineBacklogItem(run),
CancellationToken.None);
}
catch (Exception backlogException)
{
logger.LogError(
backlogException,
"Could not queue offline transcription backlog item; retaining recorded audio for manual recovery");
}
}
}
finally
{