01/26/2023, 10:59 AM
Hello guys would like to ask how can i get the flow schedule using python api or prefect cli? The main idea is that at the moment I have to check in the UI of each flow its schedule in the ui and it takes a lot of time to check several flow schedules, if we also assume that the number of flows will only increase, I decided to find an optimization of this process. I did not find information on how to do this, only how to set a schedule
:doge: 1

Christopher Boyd

01/26/2023, 3:07 PM
Hi Oria, are you just looking for the literal schedule, or the scheduled runs? this should help - you can do it via rest api or python api ; the schedule is assigned to a deployment, so you need to retrieve the deployment and filter for the schedule