Details about a task.

interface TaskProgress {
    description?: string;
    elapsedRuntime: number;
    finished?: string;
    id: string;
    lastUpdate: string;
    message?: string;
    progress: number;
    result?: unknown;
    self: string;
    started?: string;
    status:
        | "CANCELLED"
        | "ENQUEUED"
        | "RUNNING"
        | "COMPLETE"
        | "FAILED"
        | "CANCEL_REQUESTED"
        | "DEAD";
    submitted?: string;
    submittedBy: number;
}

Hierarchy

  • Record<string, unknown>
    • TaskProgress

Properties

description?: string

The description of the task.

elapsedRuntime: number

The execution time of the task, in milliseconds.

finished?: string

A timestamp recording when the task was finished.

id: string

The ID of the task.

lastUpdate: string

A timestamp recording when the task progress was last updated.

message?: string

Information about the progress of the task.

progress: number

The progress of the task, as a percentage complete.

result?: unknown

The result of the task execution.

self: string

The URL of the task.

started?: string

A timestamp recording when the task was started.

status:
    | "CANCELLED"
    | "ENQUEUED"
    | "RUNNING"
    | "COMPLETE"
    | "FAILED"
    | "CANCEL_REQUESTED"
    | "DEAD"

The status of the task.

submitted?: string

A timestamp recording when the task was submitted.

submittedBy: number

The ID of the user who submitted the task.