]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/server/job.model.ts
Add audit logs for video import
[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 8 'video-file' |
fbad87b0
C
9 'email' |
10 'video-import'
5cd80545
C
11
12export interface Job {
13 id: number
14 state: JobState
94a5ff8a
C
15 type: JobType
16 data: any,
17 error: any,
5cd80545 18 createdAt: Date
94831479
C
19 finishedOn: Date
20 processedOn: Date
5cd80545 21}