Merge branch 'release/v1.2.0'
[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   'video-import' |
11   'videos-views' |
12   'activitypub-refresher'
13
14 export interface Job {
15   id: number
16   state: JobState
17   type: JobType
18   data: any,
19   error: any,
20   createdAt: Date
21   finishedOn: Date
22   processedOn: Date
23 }