1
0
Fork 0

Correctly decrease transcription job

This commit is contained in:
Chocobozzz 2025-03-17 10:16:19 +01:00
parent a0c055de12
commit cc7fdc81aa
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -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,