refactor(error): refactor standard throws to non-retryable ApplicationFailure in workflows and activities

This commit is contained in:
yiling
2026-05-28 10:43:54 +08:00
parent afeb5e9899
commit 023f256e00
7 changed files with 71 additions and 14 deletions
+4 -1
View File
@@ -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