Pipeline Conditions and Actions
Why use conditions?
Action structure
actions:
- when: node-complete # Trigger event
if: metadata.accuracy >= 0.95 # Condition (optional)
then: stop-pipeline # Action to takeWhen: Trigger events
If: Conditions
Then: Actions
Common patterns
Quality gates
Human-in-the-loop approval
Conditional processing
Multi-condition example
Working with metadata
Handling approvals
Best practices
1. Log decision context
2. Use descriptive metadata keys
Common issues
Condition never triggers
Approval emails not sent
Pipeline stops unexpectedly
Last updated
Was this helpful?
