Morten Hauge
12/06/2023, 11:41 AM.fn
on a flow to run it directly. Unfortunately, this results in an error if the flow calls tasks that aren't also ran using .fn
. Is there a way to run a flow such that both the flow itself and all tasks are automatically called as task.fn
and flow.fn
? This would be really useful for lightweight E2E tests that don't need the resilience of actually running the flows, checking states etc.Morten Hauge
12/06/2023, 11:55 AMNate
12/06/2023, 3:17 PMsuch that both the flow itself and all tasks are automatically called aswhat troubles are you running into as it relates to the overhead ofandtask.fn
flow.fn
prefect_test_harness
?Morten Hauge
01/15/2024, 8:51 AM.fn
. However, since using .fn
on the flow doesn't propagate down to the task-level, that doesn't work by itself.
I also can't find any documentation or clean way to disable retries for all of my tasks and flows inside my tests, which means that tasks that are expected to fail in my test take forever to run, since it has to run through all of the retries first.