Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle media download failures #138

Merged
merged 3 commits into from
Feb 12, 2025
Merged

Conversation

philmcmahon
Copy link
Contributor

@philmcmahon philmcmahon commented Feb 7, 2025

What does this change?

I spotted that the media download serivice doesn't actually currently have permission to write to the transcription output queue, so if a media download fails it can't tell the user.

This fixes that, and adds a step to the output handler to send an email to the user explaining what might have happened. It looks like this:

Screenshot 2025-02-07 at 11 35 21

How to test

Tested on CODE

@philmcmahon philmcmahon marked this pull request as ready for review February 7, 2025 11:06
@philmcmahon philmcmahon requested a review from a team as a code owner February 7, 2025 11:06
Copy link
Contributor

@zekehuntergreen zekehuntergreen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pipes

@@ -88,7 +91,7 @@ export const TranscriptionOutputSuccess = TranscriptionOutputBase.extend({
translationOutputBucketKeys: z.optional(OutputBucketKeys),
});

export const MediaDownloadFailure = z.object({
export const MediaDownloadFailure = OutputBase.extend({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can get rid of id

@philmcmahon philmcmahon merged commit c28f93b into main Feb 12, 2025
5 checks passed
@philmcmahon philmcmahon deleted the handle-media-download-failures branch February 12, 2025 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants