1 import { VideoConstant } from '../videos'
2 import { RunnerJobPayload } from './runner-job-payload.model'
3 import { RunnerJobPrivatePayload } from './runner-job-private-payload.model'
4 import { RunnerJobState } from './runner-job-state.model'
5 import { RunnerJobType } from './runner-job-type.type'
7 export interface RunnerJob <T extends RunnerJobPayload = RunnerJobPayload> {
12 state: VideoConstant<RunnerJobState>
22 startedAt: Date | string
23 createdAt: Date | string
24 updatedAt: Date | string
25 finishedAt: Date | string
29 state: VideoConstant<RunnerJobState>
33 // If associated to a runner
42 // eslint-disable-next-line max-len
43 export interface RunnerJobAdmin <T extends RunnerJobPayload = RunnerJobPayload, U extends RunnerJobPrivatePayload = RunnerJobPrivatePayload> extends RunnerJob<T> {