treasure-data / digdag

Workload Automation System
https://www.digdag.io/
Apache License 2.0
1.31k stars 221 forks source link

[Question] How to define this DAG with "_parallel"? #1674

Open dshintani404 opened 2 years ago

dshintani404 commented 2 years ago

Now I consider the following DAG. (2, 3) and (4, 5) are executed in parallel, respectively.

image

As far as I thought, this DAG cannot be represented in a format of digdag. If it is modified as following, it can.

image

"+workflow":
  "+1": {}
  "+group":
    _parallel: 'true'
   "+3": {}
   "+group":
      "+2": {}
      "+group":
        _parallel: 'true'
        "+4": {}
        "+5": {}    
  "+6": {}

Is there any workarounds to define the first DAG?