How to reference another task inside a task ?

31 views
Skip to first unread message

Michel Desmoulin

unread,
Jun 7, 2022, 7:31:12 AM6/7/22
to python-doit
Hello,

I can find how to define dependencies on other tasks, but not how to create a task that is composed of a few commands, then call an existing task, then run a few commands.

Is there a way to do this?

Basically, I wish I could do:

from doit.something import TaskRef

def task_1():
     ...

def task2():
    return {"actions": ["echo 1", TaskRef('task_1'), "echo 2"]}

Cheers
Reply all
Reply to author
Forward
0 new messages