diff options
Diffstat (limited to 'server/lib/jobs/transcoding-job-scheduler/transcoding-job-scheduler.ts')
-rw-r--r-- | server/lib/jobs/transcoding-job-scheduler/transcoding-job-scheduler.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/lib/jobs/transcoding-job-scheduler/transcoding-job-scheduler.ts b/server/lib/jobs/transcoding-job-scheduler/transcoding-job-scheduler.ts index c5efe8eeb..e5530a73c 100644 --- a/server/lib/jobs/transcoding-job-scheduler/transcoding-job-scheduler.ts +++ b/server/lib/jobs/transcoding-job-scheduler/transcoding-job-scheduler.ts | |||
@@ -1,14 +1,15 @@ | |||
1 | import { JobCategory } from '../../../../shared' | 1 | import { JobCategory } from '../../../../shared' |
2 | import { VideoModel } from '../../../models/video/video' | ||
2 | import { JobHandler, JobScheduler } from '../job-scheduler' | 3 | import { JobHandler, JobScheduler } from '../job-scheduler' |
4 | |||
3 | import * as videoFileOptimizer from './video-file-optimizer-handler' | 5 | import * as videoFileOptimizer from './video-file-optimizer-handler' |
4 | import * as videoFileTranscoder from './video-file-transcoder-handler' | 6 | import * as videoFileTranscoder from './video-file-transcoder-handler' |
5 | import { VideoInstance } from '../../../models/video/video-interface' | ||
6 | 7 | ||
7 | type TranscodingJobPayload = { | 8 | type TranscodingJobPayload = { |
8 | videoUUID: string | 9 | videoUUID: string |
9 | resolution?: number | 10 | resolution?: number |
10 | } | 11 | } |
11 | const jobHandlers: { [ handlerName: string ]: JobHandler<TranscodingJobPayload, VideoInstance> } = { | 12 | const jobHandlers: { [ handlerName: string ]: JobHandler<TranscodingJobPayload, VideoModel> } = { |
12 | videoFileOptimizer, | 13 | videoFileOptimizer, |
13 | videoFileTranscoder | 14 | videoFileTranscoder |
14 | } | 15 | } |