title: How to branch multiple paths in Airflow DAG using branch operator?
body: <p>This is what I want, but I don't know how to achieve this in airflow, as both of the tasks are being executed.</p>
  <p><a href="https://i.stack.imgur.com/LlJrm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LlJrm.png" alt="enter image description here" /></a></p>
  <p>To summarize:</p>
  <ul>
  <li>T1 executes</li>
  <li>T2 executes</li>
  <li>Based on the output of T2 I want to <em>either</em> go <code>option_1 -&gt; complete</code> or <code>option_2 -&gt; Do_x, Do_y -&gt; complete</code></li>
  </ul>
  <p>How should I structure this? I have this as my current code:</p>
  <pre class="lang-py prettyprint-override"><code>(t1 &gt;&gt; t2 &gt;&gt; option_1 &gt;&gt; complete)
  (t1 &gt;&gt; t2 &gt;&gt; option_2 &gt;&gt; do_x &gt;&gt; do_y &gt;&gt; complete)
  </code></pre>
  <p>t2 in this case is a branch operator.</p>
  <p>I've also tried the syntax for <code>... [option_1, option_2] ... </code> but I need a completely separate path to execute, not just a single task to be switched.</p>