https://prefect.io logo
r

Ruben

02/11/2021, 11:22 AM
Hi there, I was send here by support. How can I register a flow to prefect Core and then let it run once? I don’t need any scheduled reruns or anything. Just a single run on an agent polling for this flow. I know it can be done using the UI, but I’d rather do this from python.
j

Jan Marais

02/11/2021, 11:30 AM
Hi. I haven't tried it but from the docs I saw you can use the Python Client and run a flow like this
👍 1
r

Ruben

02/11/2021, 11:39 AM
thanks, I solved it using: thanks, I solved it using:
Copy code
client = Client()
client.create_flow_run(flow_id=flow_id)
👍 1