mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-24 16:59:28 +00:00
refactor(error): refactor standard throws to non-retryable ApplicationFailure in workflows and activities
This commit is contained in:
@@ -68,7 +68,10 @@ export async function aiTranscriptionMedia(task: WorkflowTask): Promise<void> {
|
||||
})
|
||||
|
||||
if (generatedFiles.length === 0) {
|
||||
throw new Error('Failed to extract audio for transcription')
|
||||
throw ApplicationFailure.create({
|
||||
message: 'Failed to extract audio for transcription',
|
||||
nonRetryable: true,
|
||||
})
|
||||
}
|
||||
|
||||
// Simulate work
|
||||
|
||||
Reference in New Issue
Block a user