Task

interface Task {
    AssignedGenericResources?: GenericResourcesInner[];
    CreatedAt?: string;
    DesiredState?: TaskState;
    ID?: string;
    JobIteration?: ObjectVersion;
    Labels?: {
        [key: string]: string;
    };
    Name?: string;
    NodeID?: string;
    ServiceID?: string;
    Slot?: number;
    Spec?: TaskSpec;
    Status?: TaskStatus;
    UpdatedAt?: string;
    Version?: ObjectVersion;
}

Properties

AssignedGenericResources?: GenericResourcesInner[]

User-defined resources can be either Integer resources (e.g, SSD=3) or String resources (e.g, GPU=UUID1).

CreatedAt?: string
DesiredState?: TaskState
ID?: string

The ID of the task.

JobIteration?: ObjectVersion
Labels?: {
    [key: string]: string;
}

User-defined key/value metadata.

Name?: string

Name of the task.

NodeID?: string

The ID of the node that this task is on.

ServiceID?: string

The ID of the service this task is part of.

Slot?: number
Spec?: TaskSpec
Status?: TaskStatus
UpdatedAt?: string
Version?: ObjectVersion