Charles Leung
09/02/2021, 5:47 PMKevin Kho
flow.register() or the Prefect CLI?Charles Leung
09/02/2021, 5:50 PMCharles Leung
09/02/2021, 5:51 PMKevin Kho
Kevin Kho
Kevin Kho
flow objects
from prefect import Flow, task
with Flow("a") as flow:
task(lambda x: x+ 1)(1)
flows = []
for i in list(range(3)):
with Flow("a"+str(i)) as flow:
task(lambda x: x+ 1)(i)
flows.append(flow.copy())
x, y, z = flowsKevin Kho
flow and in z) so you need to del flowCharles Leung
09/02/2021, 6:02 PMKevin Kho
Kevin Kho
Kevin Kho
Charles Leung
09/02/2021, 6:05 PMCharles Leung
09/02/2021, 6:06 PMKevin Kho