title: Airflow: avoid task state = skipped
body: <p>I would like to create a conditional task in Airflow as described in the schema below. The expected scenario is the following:</p>
  
  <ul>
  <li>Task 1: Start_cluster executes</li>
  <li>If Task 1 succeed, then Task 2 executes</li>
  <li>If Task 2 succeed,then Task 3 executes</li>
  <li>If all tasks succeed or one task fails, then execute Task 4: terminate_cluster</li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/QEoHv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QEoHv.png" alt="enter image description here"></a></p>
  
  <p>i tried:</p>
  
  <pre><code>trigger_rule=TriggerRule.ONE_FAILED
  </code></pre>
  
  <p>task 4 stay on skipped state, with all_done too</p>
  
  <pre><code>trigger_rule=TriggerRule.ALL_DONE
  </code></pre>
  
  <p>I foud this solution: <a href="https://stackoverflow.com/questions/43678408/how-to-create-a-conditional-task-in-airflow/43680277#43680277">How to create a conditional task in Airflow</a> but it doesn't work for me.</p>