mynlp/runexp

Duplicate execution of tasks

Closed this issue · 0 comments

Duplication execution occurs when there are dependencies involving a set of files between tasks.

For example, in the following code, the second task will be executed twice.

exp(name="head_tail",
    rule="head runexp.py > head.txt && tail runexp.py > tail.txt",
    target="head.txt tail.txt")
exp(name="cat",
    rule="cat head.txt tail.txt > cat.txt",
    source="head.txt tail.txt",
    target="cat.txt")