1
0
Fork 0
peertube/shared/models/server/job.model.ts
2018-02-28 18:04:55 +01:00

17 lines
360 B
TypeScript

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
}