Hello guys !
I have a weird bug when I'm using prefect. I reduce the example to the minimal I could find.
This works:
from prefect import task, Parameter, Flow
@task
def load_data(c, b):
return c
@task
def bugtask(c):
return c
with Flow("training") as flowModel:
init = Parameter("c")
data = load_data(init, b= {"f": 4})
# data = load_data(init, b= {"f": bugtask})
state_model = flowModel.run(c=5)
Now if you just use the comment instead of
load_data
(basically, if you have a task in your arguments, even nested in other structured and not executed, there is an error.
It this expected ?
I have the feeling that it tries to run all the tasks, even if they are not called !
@josh @Dylan, This is a problem for subflows since I must give the configuration of the subflow as an argument of my run_flow task :s