mirror of https://github.com/Chocobozzz/PeerTube
21 lines
430 B
TypeScript
21 lines
430 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'
|
|
|
|
export interface Job {
|
|
id: number
|
|
state: JobState
|
|
type: JobType
|
|
data: any,
|
|
error: any,
|
|
createdAt: Date
|
|
finishedOn: Date
|
|
processedOn: Date
|
|
}
|