Migrate to bull
[oweals/peertube.git] / shared / models / server / job.model.ts
1 export type JobState = 'active' | 'completed' | 'failed' | 'waiting' | 'delayed'
2
3 export type JobType = 'activitypub-http-unicast' |
4   'activitypub-http-broadcast' |
5   'activitypub-http-fetcher' |
6   'activitypub-follow' |
7   'video-file-import' |
8   'video-file' |
9   'email'
10
11 export interface Job {
12   id: number
13   state: JobState
14   type: JobType
15   data: any,
16   error: any,
17   createdAt: Date
18   finishedOn: Date
19   processedOn: Date
20 }