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
| Name | Type | Description |
|---|---|---|
| taskId | *task.TaskIdentifier | The task identifier containing the project, domain, name, and version information to be converted into a models.TaskKey. |
Returns
| Type | Description |
|---|---|
models.TaskKey | A models.TaskKey object populated with the project, domain, name, and version from the provided task identifier. |