]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/server/job.model.ts
Add creation reason
[github/Chocobozzz/PeerTube.git] / shared / models / server / job.model.ts
index 7d8d39a1953dd339122e94d709086923e4e749c0..1b9aa8a0718d123465758296d39b7a68e74ec241 100644 (file)
@@ -1,12 +1,15 @@
-export type JobState = 'active' | 'complete' | 'failed' | 'inactive' | 'delayed'
+export type JobState = 'active' | 'completed' | 'failed' | 'waiting' | 'delayed'
 
 export type JobType = 'activitypub-http-unicast' |
   'activitypub-http-broadcast' |
   'activitypub-http-fetcher' |
   'activitypub-follow' |
   'video-file-import' |
-  'video-file' |
-  'email'
+  'video-transcoding' |
+  'email' |
+  'video-import' |
+  'videos-views' |
+  'activitypub-refresher'
 
 export interface Job {
   id: number
@@ -15,5 +18,6 @@ export interface Job {
   data: any,
   error: any,
   createdAt: Date
-  updatedAt: Date
+  finishedOn: Date
+  processedOn: Date
 }