Tony Alfonse
02/06/2023, 1:33 AMfrom prefect.orion.schemas.sorting import FlowRunSort
from prefect.orion.schemas.filters import FlowFilter, FlowFilterId,FlowRunFilterStartTime
flow_run = await client.read_flow_runs(
limit=1,
sort=FlowRunSort.START_TIME_DESC,
flow_filter=FlowFilter(
id=FlowFilterId(any_=[flow_id])
)
Any leads on how I can make sure the result I get is for today's last execution? I can't find anything in the documentation or maybe I am missing something here.Carlos Cueto
02/10/2023, 1:40 PMTony Alfonse
02/15/2023, 2:04 PM