parallelizing tasks in Luigi Orchestrator
Asked Answered
S

1

11

I defined three tasks T1, T2, and T3, and then a task T4 as follows:

class T4(luigi.Task)
    def requires(self):
        return [T1(), T2(), T3()]

Is there a natural way to tell Luigi that I want these tasks T1, T2, and T3 to be executed in parallel?

Skinhead answered 7/12, 2015 at 5:58 Comment(0)
C
18

It depends on what dependencies T1, T2 and T3 have. If they haven't another task as a common dependency, you can just run your task specifying --workers=3 and Luigi will run each task in a separate worker.

Contessacontest answered 7/12, 2015 at 17:10 Comment(1)
Can this be set through the luigi.cfg as well?Understanding

© 2022 - 2024 — McMap. All rights reserved.