Hello, I'm new to prefect and I'm using the python...
# ask-community
k
Hello, I'm new to prefect and I'm using the python SDK to create my flows. I'm trying to get a list of all my flows deployed in my prefect UI environment and run them with their default parameters that I've set. Is there a call I can make that can get a list of all my flows and another call I can make that runs them by
name
or
id
?
What I'm generally trying to achieve is that I need to run a data refresh every so often that requires me to run 50 prefect flows I have deployed. Rather than going through each one of them individually and running them I wanted a "one button" solution. All my flows also have default parameters on them I would like to still have when I batch run them
l
Hey, I'm doing something similar at the moment. I'm making use of https://docs.prefect.io/2.10.18/api-ref/prefect/client/orchestration/#prefect.client.orchestration.PrefectClient.create_flow_run_from_deployment first getting the list of all the deployments (or filtering them first). Then using the deployment id from that in the above
k
Is there any equivalent of this but with prefect server?
Never mind I found it
l
Can you share here what it was?