Sean Talia
09/09/2021, 2:53 PM@task
def custom_task_1(input) -> str:
return f"Custom Input: {input}"
with Flow(...) as flow:
custom_task_1_results = custom_task_1("Hello World!")
custom_task_2 = CustomTask2(message=custom_task_1_results)
but when I look at my flow's schematic, it doesn't show custom_task_1
as being upstream of CustomTask2
...I don't remember ever having run into this, so I feel like there's something quite obvious that I must be missing. I appreciate any help!Kevin Kho
CustomTask2()(message=custom_task_1_results)
so that both the init and run are called? Otherwise itβs just the init called. I assume that is a class.Sean Talia
09/09/2021, 5:00 PMmessage
be passed in as runtime, only at task initialization, so it didn't like it when I tried to pass a task result to the constructor πKevin Kho
CustomTask2(message=custom_task_1_results)()
maybe?