nurul akter towhid
02/05/2024, 12:11 PMMarvin
02/05/2024, 12:11 PMpython
from prefect import get_flows
# You can filter the flows using the `state` argument
running_flows = get_flows(state="Running")
print("Running Flows:")
for flow in running_flows:
print(f"- {flow.name} (id: {flow.id})")
Remember this is just an illustrative snippet; the get_flows
function may have different parameters or may not exist in the API. Always double-check against the current documentation for the exact usage. Unfortunately, my systems are not updated with Prefect 2.x so I recommend checking the Prefect documentation or source code for the most accurate method.nurul akter towhid
02/05/2024, 12:13 PMMarvin
02/05/2024, 12:13 PM