https://prefect.io logo
t

Tim Wright

04/30/2022, 12:24 AM
Is there any way to specify a custom FlowRunner (which has subclassed Prefect's FlowRunner) as the default FlowRunner with PrefectCloud? I would like to enforce some checks on the Flow Run configuration/settings for all flows. I was thinking of subclassing the FlowRunner and adding some validation in its
__init__
method
k

Kevin Kho

04/30/2022, 6:38 AM
Is it Prefect 1 or 2? What are you trying to check? We don’t recommend subclassing that. Instead, you can add the checks in a state handler as the flow starts.
6 Views