Is there a way to have a `task` return other task?...
# ask-community
m
Is there a way to have a
task
return other task? My use case is creating a
docker.CreateContainer
, but I need to build the
command
parameter.
j
I’m not sure if I follow 🤔 That
command
parameter is a string or list of strings
Copy code
command (Union[list, str], optional): A single command or a list of commands to run
Is there a reason for not having the upstream task return the list of commands and pass them into the downstream CreateContainer task?
m
…my mental model of tasks was all wrong 🙂
🙂 1