Manuel Mourato
10/20/2020, 3:25 PM@task
my_inner_task():
# do something
@task
def my_task_one():
my_inner_task()
Chris White
run
method directly:
@task
my_inner_task():
# do something
@task
def my_task_one():
my_inner_task.run()
Note that when you do this, you are not asking Prefect to track the dependency or any stateful behavior of the inner task - instead you are simply reusing common python logic (which is perfectly valid)