Re: Can I force re-execution of task when task_dep are re-run?

43 views
Skip to first unread message

Eduardo Schettino

unread,
Jan 6, 2015, 12:23:52 AM1/6/15
to python-doit
On Mon, Jan 5, 2015 at 8:05 PM, Johan Kjölhede <gig...@gmail.com> wrote:
Take the situation

*pseudo-doit-code*

Task1
   lalala

Task2
   task_dep: Task1
   tralala

Is there a way to create a dependency/uptodate, (without resorting to input/target files), in which Task2 is always considered NOT uptodate if Task1 had to run?

--

Yes. result_dep (http://pydoit.org/uptodate.html#result-dependency)

If Task1 doesnt produce any result that could be used, just return a timestamp!

Note that as of doit 0.26 result_dep creates an implicit `task_dep` but on 0.27 it will create an implicit `setup`.

cheers
Reply all
Reply to author
Forward
0 new messages