]> 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 5ebb75a5c08ba74aed9172901c708b2d9032fd79..1b9aa8a0718d123465758296d39b7a68e74ec241 100644 (file)
@@ -1,10 +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' |
-  'video-file' |
-  'email'
+  'activitypub-follow' |
+  'video-file-import' |
+  'video-transcoding' |
+  'email' |
+  'video-import' |
+  'videos-views' |
+  'activitypub-refresher'
 
 export interface Job {
   id: number
@@ -13,5 +18,6 @@ export interface Job {
   data: any,
   error: any,
   createdAt: Date
-  updatedAt: Date
+  finishedOn: Date
+  processedOn: Date
 }