Skip to main content

ToTaskKey

Creates a models.TaskKey from a task.TaskIdentifier.

def ToTaskKey(
taskId: *task.TaskIdentifier
) - > models.TaskKey

Creates a models.TaskKey from a task.TaskIdentifier. This function is used to convert a task identifier into a task key object, which is useful for operations requiring a standardized task key structure.

Parameters

NameTypeDescription
taskId*task.TaskIdentifierThe task identifier containing the project, domain, name, and version information to be converted into a models.TaskKey.

Returns

TypeDescription
models.TaskKeyA models.TaskKey object populated with the project, domain, name, and version from the provided task identifier.