aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/server/job.model.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/server/job.model.ts')
-rw-r--r--shared/models/server/job.model.ts27
1 files changed, 14 insertions, 13 deletions
diff --git a/shared/models/server/job.model.ts b/shared/models/server/job.model.ts
index 19fd4c659..cf29d20d4 100644
--- a/shared/models/server/job.model.ts
+++ b/shared/models/server/job.model.ts
@@ -1,23 +1,24 @@
1export type JobState = 'active' | 'completed' | 'failed' | 'waiting' | 'delayed' 1export type JobState = 'active' | 'completed' | 'failed' | 'waiting' | 'delayed'
2 2
3export type JobType = 'activitypub-http-unicast' | 3export type JobType =
4 'activitypub-http-broadcast' | 4 | 'activitypub-http-unicast'
5 'activitypub-http-fetcher' | 5 | 'activitypub-http-broadcast'
6 'activitypub-follow' | 6 | 'activitypub-http-fetcher'
7 'video-file-import' | 7 | 'activitypub-follow'
8 'video-transcoding' | 8 | 'video-file-import'
9 'email' | 9 | 'video-transcoding'
10 'video-import' | 10 | 'email'
11 'videos-views' | 11 | 'video-import'
12 'activitypub-refresher' | 12 | 'videos-views'
13 'video-redundancy' 13 | 'activitypub-refresher'
14 | 'video-redundancy'
14 15
15export interface Job { 16export interface Job {
16 id: number 17 id: number
17 state: JobState 18 state: JobState
18 type: JobType 19 type: JobType
19 data: any, 20 data: any
20 error: any, 21 error: any
21 createdAt: Date | string 22 createdAt: Date | string
22 finishedOn: Date | string 23 finishedOn: Date | string
23 processedOn: Date | string 24 processedOn: Date | string