https://prefect.io logo
#prefect-community
Title
# prefect-community
n

Nathan Molby

03/13/2020, 2:41 PM
Is there any way to run a task inside of another task? It seems that a flow could quickly get incredibly complicated if this is not possible.
c

Chris White

03/13/2020, 2:49 PM
Hi Nathan, you’re welcome to run as much Python code within a given task as you’d like (including calling another task’s
run
method manually); that being said, the value of Prefect comes from tracking a strict DAG of dependencies, in which case there needs to be a strong notion of “finished” prior to another task running, so if you want Prefect to know about the dependency relationship you’ll need to separate out the two tasks.
👍 1