You need to run a task in Cloud Composer only if the previous task failed. Which Trigger Rule should you use?
Trap 1: none_failed
Executes if no parent failed (can include skipped).
Trap 2: always
Executes regardless of parent status.
Trap 3: all_success
Executes only if all parents succeed.
- A
none_failed
Why it fails: Executes if no parent failed (can include skipped).
- B
always
Why it fails: Executes regardless of parent status.
- C
all_success
Why it fails: Executes only if all parents succeed.
- D
one_failed
The one_failed trigger rule fires the downstream task only when at least one upstream task has failed, satisfying the conditional execution requirement. Unlike all_failed, which needs every parent to fail, one_failed triggers on a single failure, matching the scenario precisely.