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



                                                                                
                        
                       
                


                      

               

                 
export type JobState = 'active' | 'complete' | 'failed' | 'inactive' | '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
  updatedAt: Date
}