Don't fail remote transcoding on retry

pull/5817/head
Chocobozzz 2023-05-26 09:28:44 +02:00
parent f474a519dc
commit 64aa66c4a6
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import { logger } from '@server/helpers/logger'
import { moveToFailedTranscodingState, moveToNextState } from '@server/lib/video-state' import { moveToFailedTranscodingState, moveToNextState } from '@server/lib/video-state'
import { VideoJobInfoModel } from '@server/models/video/video-job-info' import { VideoJobInfoModel } from '@server/models/video/video-job-info'
import { MRunnerJob } from '@server/types/models/runners' import { MRunnerJob } from '@server/types/models/runners'
import { RunnerJobSuccessPayload, RunnerJobUpdatePayload, RunnerJobVODPrivatePayload } from '@shared/models' import { RunnerJobState, RunnerJobSuccessPayload, RunnerJobUpdatePayload, RunnerJobVODPrivatePayload } from '@shared/models'
import { AbstractJobHandler } from './abstract-job-handler' import { AbstractJobHandler } from './abstract-job-handler'
import { loadTranscodingRunnerVideo } from './shared' import { loadTranscodingRunnerVideo } from './shared'
@ -29,7 +29,10 @@ export abstract class AbstractVODTranscodingJobHandler <C, U extends RunnerJobUp
protected async specificError (options: { protected async specificError (options: {
runnerJob: MRunnerJob runnerJob: MRunnerJob
nextState: RunnerJobState
}) { }) {
if (options.nextState !== RunnerJobState.ERRORED) return
const video = await loadTranscodingRunnerVideo(options.runnerJob, this.lTags) const video = await loadTranscodingRunnerVideo(options.runnerJob, this.lTags)
if (!video) return if (!video) return