Rajan Subramanian
04/06/2022, 8:09 PMprefect deployment ls
but i want to get all my created deployments...1000 of them and run them all. so im assuming i have to programatically execute prefect deployment run deploymenet_name for each deployment in my deploymentsKevin Kho
04/06/2022, 8:13 PMasync with get_client() as client:
deployments = await client.read_deployments(
flow_filter=FlowFilter(name={"any_": flow_name}) if flow_name else None
)
and they also you will need to paginate through the deployments (pass limit
and offset
to client.read_deployments
) because the default limit is 200 objectsRajan Subramanian
04/06/2022, 8:28 PMKevin Kho
04/06/2022, 8:29 PMRajan Subramanian
04/06/2022, 8:29 PM