aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/server/job.model.ts
blob: 5ebb75a5c08ba74aed9172901c708b2d9032fd79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
export type JobState = 'active' | 'complete' | 'failed' | 'inactive' | 'delayed'

export type JobType = 'activitypub-http-unicast' |
  'activitypub-http-broadcast' |
  'activitypub-http-fetcher' |
  'video-file' |
  'email'

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