1
0
Fork 0
peertube/shared/models/server/job.model.ts
2018-08-30 15:03:18 +02:00

22 lines
468 B
TypeScript

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' |
'videos-views'
export interface Job {
id: number
state: JobState
type: JobType
data: any,
error: any,
createdAt: Date
finishedOn: Date
processedOn: Date
}