Correctly decrease transcription job
This commit is contained in:
parent
a0c055de12
commit
cc7fdc81aa
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue