https://prefect.io logo
r

Roshan Shrestha

07/31/2023, 5:20 PM
Hi, What is the best way to create Automation(for monitoring flow run state) without manually creating via Prefect UI automations tab. I could think of utilizing Prefect cloud rest api along with Github action but are there any other recommended better approach?
w

Will Raphaelson

07/31/2023, 5:31 PM
yeah at this time we dont have a python convenience for this. you can hit the rest API with a client of your choice, or you can also use the prefect_client as a small helper, which you can explore here https://github.com/PrefectHQ/prefect/blob/bc93572b57dbb1238025dc1945b15a2ef029c582/src/prefect/client/orchestration.py#L2512C28-L2512C28
r

Roshan Shrestha

07/31/2023, 5:32 PM
ok. thank you