https://prefect.io logo
Title
m

Manuel Aristarán

03/06/2020, 9:24 PM
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

josh

03/06/2020, 9:29 PM
I’m not sure if I follow 🤔 That
command
parameter is a string or list of strings
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

Manuel Aristarán

03/06/2020, 11:41 PM
…my mental model of tasks was all wrong 🙂
🙂 1