Skip to content
Advertisement

Airflow – how to skip certain tasks

For a pipeline like below, sensor was set to softfail= True I’m trying to figure out how to only skip certain tasks when the sensor fails. For example only have B and D fail but still execute C and E. Many thanks for your help.

Sensor A >> B >> C >> D >> E

Advertisement

Answer

I think you could use TriggerRule (https://airflow.apache.org/docs/apache-airflow/stable/concepts/dags.html#concepts-trigger-rules)
e.g

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement