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, which is a common data structure used throughout the system.

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.