Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Correctly decrease transcription job

Chocobozzzcc7fdc81aa12
diff --git a/server/core/lib/runners/job-handlers/transcription-job-handler.ts b/server/core/lib/runners/job-handlers/transcription-job-handler.ts
index 9a87b3d4ae..cda557a7ba 100644
--- a/server/core/lib/runners/job-handlers/transcription-job-handler.ts
+++ b/server/core/lib/runners/job-handlers/transcription-job-handler.ts
@@ -21,7 +21,6 @@ type CreateOptions = {
}
export class TranscriptionJobHandler extends AbstractJobHandler<CreateOptions, RunnerJobUpdatePayload, TranscriptionSuccess> {
-
protected isAbortSupported () {
return true
}
@@ -90,6 +89,8 @@ export class TranscriptionJobHandler extends AbstractJobHandler<CreateOptions, R
const video = await loadRunnerVideo(runnerJob, this.lTags)
if (!video) return
+ await VideoJobInfoModel.decrease(options.runnerJob.privatePayload.videoUUID, 'pendingTranscription')
+
await onTranscriptionEnded({
video,
language: resultPayload.inputLanguage,