You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
fms/api/sm/responses/processes.ts

48 lines
1.0 KiB

export interface ProcessExceptionInterface {
message: string
file: string
line: number
code: number
trace: any[]
}
export interface ProcessProgressInterface {
total: number
progress: number
memory: string
remaining: string
percent: number
}
export interface ProcessInterface {
id: string
lock: string | null
containerUuid: string | null
pid: bigint | null
name: string
options: Record<string, any>
arguments: Record<string, any>
exception: ProcessExceptionInterface | null
progress: ProcessProgressInterface | null
outputId: string | null
createdAt: string
updatedAt: string | null
startedAt: string | null
pausedAt: string | null
cancelledAt: string | null
completedAt: string | null
status: Status
canPlay: boolean
canPause: boolean
canRepeat: boolean
canStop: boolean
canKill: boolean
}
export enum Status {
Wait = 'wait',
Running = 'running',
Cancelled = 'cancelled',
Error = 'error',
Success = 'success',
}