Filip Lindvall
09/09/2021, 8:57 AMdef some_task(id:str, old: Dict, new: Dict)
and I have data as [{"id":"some_id", "old":{...}, "new":{...}}, ...]
is there some easy way to explode the dict into the tasks, or is it best to write some wrapper task whose only responsibility is to take the data and pass it to the intended task.Mariia Kerimova
09/09/2021, 1:33 PMKevin Kho
Tuple
, Dict
, or List
is already defined (not a task output), then you can unpack it. If they are the output of a Task, then you need an intermediate task to unpack or you need to pass {"id":"some_id", "old":{...}, "new":{...}}
in the task and unpack it in there.Filip Lindvall
09/10/2021, 12:45 PM