aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/jobs/http-request-job-scheduler/http-request-broadcast-handler.ts
blob: 6b6946d02c0410f54fa7b2f557830f8264d92361 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import * as Bluebird from 'bluebird'

import { database as db } from '../../../initializers/database'
import { logger } from '../../../helpers'

async function process (data: { videoUUID: string }, jobId: number) {

}

function onError (err: Error, jobId: number) {
  logger.error('Error when optimized video file in job %d.', jobId, err)
  return Promise.resolve()
}

async function onSuccess (jobId: number) {

}

// ---------------------------------------------------------------------------

export {
  process,
  onError,
  onSuccess
}