INNER CODE UNIT · Python
list_active_launch_plans
flyteorg/flytekit · flytekit/clis/flyte_cli/main.py:898
def list_active_launch_plans(project, domain, host, insecure, token, limit, show_all, sort_by, urns_only):
"""
List the information of all the active launch plans under the scope specified by {project, domain}.
An active launch plan is a launch plan with an active schedule associated with it.
"""
if not urns_only:
_welcome_message()
click.echo("Active Launch Plan Found in {}:{}\n".format(_tt(project), _tt(domain)))
click.echo("{:30} {:50} {:80}".format("Schedule", "Version", "Urn"))
client = _get_client(host, insecure)
while True:
active_lps, next_token = client.list_active_launch_plans_paginated(
project,
domain,
limit=limit,
token=token,
sort_by=_admin_common.Sort.from_python_std(sort_by) if sort_by else None,