Task

constructor(ID: String? = null, version: ObjectVersion? = null, createdAt: String? = null, updatedAt: String? = null, name: String? = null, labels: Map<String, String>? = null, spec: TaskSpec? = null, serviceID: String? = null, slot: Int? = null, nodeID: String? = null, assignedGenericResources: List<GenericResourcesInner>? = null, status: TaskStatus? = null, desiredState: TaskState? = null, jobIteration: ObjectVersion? = null)

Parameters

ID

The ID of the task.

version
createdAt
updatedAt
name

Name of the task.

labels

User-defined key/value metadata.

spec
serviceID

The ID of the service this task is part of.

slot
nodeID

The ID of the node that this task is on.

assignedGenericResources

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

status
desiredState
jobIteration