INNER CODE UNIT · Python
get_task
flyteorg/flytekit · flytekit/clis/flyte_cli/main.py:723
def get_task(urn, host, insecure):
"""
Get the details of a certain version of a task identified by the URN of it.
The URN of the versioned task is in the form of ``tsk:<project>:<domain>:<task_name>:<version>``.
"""
_welcome_message()
client = _get_client(host, insecure)
t = client.get_task(cli_identifiers.Identifier.from_python_std(urn))
click.echo(_tt(t))
click.echo("")
########################################################################################################################
#
# Workflow Commands
#
########################################################################################################################