Phil
11/01/2021, 10:01 PMTypeError: Task is not iterable. If your task returns multiple results, pass `nout` to the task decorator/constructor, or provide a `Tuple` return-type annotation to your task.
If I got it right, Task D only gets a reference to the previous task object instead of the reduced list of DataFrames. The same logic with the task decorator, on the other hand, works without any problems. There is no difference in both logics, which is why I am quite irritated by the different results. Please, can someone help me out? It's probably just a small thing, but I just can't find it 😕Kevin Kho
run
method inside the flow. So if you have
@task
def abc(..):
return ..
then you would do:
with Flow(...) as flow:
abc(..)
and for a class if you have:
class ABC(Task):
def run(...):
return ...
it would be:
abc_task = ABC(...) # init here
with Flow(...) as flow:
abc_task(...) # this calls the run
or it would be:
with Flow(...) as flow:
ABC(init_here)(run_here)
Kevin Kho
map
is correct thoughKevin Kho
init
like that for your class because you will inherit the Task
init
which does the same thing and has the same keywordsPhil
11/02/2021, 12:48 AMKevin Kho
Phil
11/02/2021, 11:18 AM