interface TaskGetResponse {
    created: string;
    done: boolean;
    events?: TaskEvent[];
    exit_code?: number;
    image?: string;
    instance_specification?: string;
    purpose: TaskGetResponsePurpose;
    purpose_id: string;
    purpose_version?: number;
    removal?: boolean;
    states?: TaskState[];
}

Properties

created: string

The date and time the task was created

done: boolean

True if the task has run to completion. If the task finished successfully the exit_code will be zero.

events?: TaskEvent[]

A (possibly empty) list of application events. The oldest event occupies the first position in the list.

exit_code?: number

Present when done and zero if the task finished successfully.

image?: string

If a container image is launched by the task the image name is available here

instance_specification?: string

Is the Task Purpose is INSTANCE, and the instance was given a specification the specification can be found here. For Applications the specification is returned verbatim.

The purpose of the task. Tasks are typically executed for the purpose of Dataset processing, attaching as Project Files or Application Instance execution. Other fields in this object are only valid if the purpose is known (i.e. is not UNKNOWN)

purpose_id: string

The identity of the purpose, where available. This will be the Dataset UUID if the purpose of the task is/was for Dataset processing.

purpose_version?: number

The version number, relating to the object under control. For Datasets this will be the Dataset version.

removal?: boolean

True if the Task relates to an object removal, i.e. a DELETE

states?: TaskState[]

A (possibly empty) list of application states, the oldest state occupies the first position in the list.