Kirill Popov
11/17/2022, 3:21 PMKevin Wang
11/17/2022, 3:26 PMFlowRunFilter
Try the below, you can see the commented params like limit, and sort.
state_filter = {}
state_filter["name"] = {"any_": ["Running"]}
flow_runs = asyncio.run(
get_client().read_flow_runs(
flow_run_filter=FlowRunFilter(state=state_filter) if state_filter else None,
# limit=limit,
# sort=FlowRunSort.EXPECTED_START_TIME_DESC,
)
)
Kirill Popov
11/17/2022, 3:27 PMKevin Wang
11/17/2022, 3:28 PMprefect
repo, which you can search through the code base. and see some tests written with them, as examples.Kirill Popov
11/17/2022, 3:32 PMAnna Geller
11/17/2022, 8:40 PM