]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/server/job.model.ts
Merge branch 'release/2.1.0' into develop
[github/Chocobozzz/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-transcoding' |
9 'email' |
10 'video-import' |
11 'videos-views' |
12 'activitypub-refresher' |
13 'video-redundancy'
14
15 export interface Job {
16 id: number
17 state: JobState
18 type: JobType
19 data: any,
20 error: any,
21 createdAt: Date | string
22 finishedOn: Date | string
23 processedOn: Date | string
24 }