aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/models/server/job.model.ts
blob: 19fd4c65924531b14505bb9b0dd34bef590cdf0e (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                                



                                                  
                        
                       
                       
           
                  
                  

                           



                      


               


                            
 
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-transcoding' |
  'email' |
  'video-import' |
  'videos-views' |
  'activitypub-refresher' |
  'video-redundancy'

export interface Job {
  id: number
  state: JobState
  type: JobType
  data: any,
  error: any,
  createdAt: Date | string
  finishedOn: Date | string
  processedOn: Date | string
}