interface TaskSummary {
    created: string;
    done: boolean;
    exit_code?: number;
    id: string;
    image?: string;
    processing_stage?: TaskSummaryProcessingStage;
    purpose: string;
    purpose_id: string;
    purpose_version?: number;
    removal?: boolean;
}

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.

exit_code?: number

Present when done and zero if the task finished successfully.

id: string

The Task UUID

image?: string

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

processing_stage?: TaskSummaryProcessingStage

The processing stage. When loading a Dataset it typically passes through COPYING, FORMATTING and LOADING stages before reaching DONE (or FAILED). A Dataset can be used (and deleted) as long as it's passed the FORMATTING stage

purpose: string

The purpose for the Task. Tasks are responsible for uploading a Dataset, attaching a Dataset as a File to a project or launching an Applications instance.

purpose_id: string

The related object ID for the Task purpose. If the purpose relates to a Dataset upload the ID will be a Dataset ID.

purpose_version?: number

The related object version for the Task purpose. This field will only be set if the purpose is DATASET.

removal?: boolean

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