aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/models/server/job.model.ts
blob: a38a8aa3b9b236715b505e686970322de0c0c95b (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-file' |
  'email'

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