1
0
Fork 0
peertube/shared/models/server/job.model.ts
2019-03-19 17:00:08 +01:00

23 lines
503 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-transcoding' |
'email' |
'video-import' |
'videos-views' |
'activitypub-refresher'
export interface Job {
id: number
state: JobState
type: JobType
data: any,
error: any,
createdAt: Date
finishedOn: Date
processedOn: Date
}