Hi guys , Is there a Query to execute or run a pre...
# prefect-community
s
Hi guys , Is there a Query to execute or run a prefect flow from prefect Interactive API?
k
This is for Prefect 1 right?
You can use
Client.create_flow_run
or you can query for it yourself like this
s
@Kevin Kho for using in prefect cloud interactive API tab and also for calling it in python. The above gives error below: {"errors":[{"path":["createFlowRun"],"message":"Version group a6606436-21d9-4dcc-aa3d-1d2a4572fb8d has no unarchived flows.","extensions":{"code":"INTERNAL_SERVER_ERROR"}}],"data":{"createFlowRun":null}}
k
That sounds like either the id is wrong or you don’t have a current version? Could you show me in the UI where you grab this