await publishTranscriptionOutputFailure()

in packages/worker/src/index.ts [299:316]


			await publishTranscriptionOutputFailure(
				sqsClient,
				config.app.destinationQueueUrls[job.transcriptDestinationService],
				job,
			);
			return;
		}

		// Giant doesn't know the language of files uploaded to it, so for Giant files we first run language detection
		// then based on the output, either run transcription or run transcription and translation, and return the output
		// of both to the user. This is different from the transcription-service, where transcription and translation are
		// two separate jobs
		const combineTranscribeAndTranslate =
			job.transcriptDestinationService === DestinationService.Giant &&
			job.translate;
		const extraTranslationTimMultiplier = combineTranscribeAndTranslate ? 2 : 1;

		if (ffmpegResult.duration && ffmpegResult.duration !== 0) {