]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/server/job.model.ts
Migrate to bull
[github/Chocobozzz/PeerTube.git] / shared / models / server / job.model.ts
CommitLineData
94831479 1export type JobState = 'active' | 'completed' | 'failed' | 'waiting' | 'delayed'
94a5ff8a
C
2
3export type JobType = 'activitypub-http-unicast' |
4 'activitypub-http-broadcast' |
5 'activitypub-http-fetcher' |
5350fd8e 6 'activitypub-follow' |
0138af92 7 'video-file-import' |
ecb4e35f
C
8 'video-file' |
9 'email'
5cd80545
C
10
11export interface Job {
12 id: number
13 state: JobState
94a5ff8a
C
14 type: JobType
15 data: any,
16 error: any,
5cd80545 17 createdAt: Date
94831479
C
18 finishedOn: Date
19 processedOn: Date
5cd80545 20}