PeerTube/server/lib/jobs/transcoding-job-scheduler/transcoding-job-scheduler.ts

18 lines
526 B
TypeScript
Raw Normal View History

2017-11-09 10:51:58 -06:00
import { JobScheduler, JobHandler } from '../job-scheduler'
import * as videoFileOptimizer from './video-file-optimizer-handler'
import * as videoFileTranscoder from './video-file-transcoder-handler'
import { JobCategory } from '../../../../shared'
const jobHandlers: { [ handlerName: string ]: JobHandler<any> } = {
videoFileOptimizer,
videoFileTranscoder
}
const jobCategory: JobCategory = 'transcoding'
const transcodingJobScheduler = new JobScheduler(jobCategory, jobHandlers)
export {
transcodingJobScheduler
}