Chhaya Vankhede
08/17/2021, 9:45 AMChhaya Vankhede
08/17/2021, 9:48 AMwith Flow("start flow"), schedule=schedule) as f:
start_task()
flow_id = f.register(project_name="project")
client.create_flow_run(flow_id=flow_id)
now I'm looking for something like below to pause schedule
client.pause_schedule(flow_id)
and something like this to delete the flow
client.delete_flow(flow_id)
Chhaya Vankhede
08/17/2021, 11:01 AMclient.set_flow_run_state(flow_run_id, Cancelled())
but it cancels the current flow run only and runs the next scheduled flow.Kevin Kho
set_schedule_inactive
mutation in the graphQL API. It will take in a flow_id like this .
mutation {
set_schedule_inactive (input: {flow_id: "bcde92fd-0e8a-4a79-9583-5bdf662d9f5f"}) {
success
}
}
Kevin Kho
archive_flow
Chhaya Vankhede
08/18/2021, 3:43 AM