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



                                                  
                        
                       
                

                



                      


               
                 

                   
 
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-import'

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