Workflow Design
- Start Simple: Begin with linear workflows, add complexity gradually
- Clear Naming: Use descriptive names for steps and parameters
- Error Handling: Always define error handling strategies
- Documentation: Use clear descriptions for workflows and steps
- Observability: Use file logged in /observe to debug and build your workflows
Step Design
- Single Responsibility: Each step should have one clear purpose
- Run Limits: Set appropriate
runLimit values to prevent infinite loops
Template Variables
- Type Safety: Be aware of data types when using templates
- Observability: Use file logged in /observe to debug and build your workflows
Error Handling
- Graceful Degradation: Design workflows to handle partial failures
- Retry Logic: Use appropriate retry strategies for different error types
- Workflow Special Actions: Use special keyworkds like 'stop-workflow', 'retry-step', ...
- Parallel Execution: Use multiple next steps for parallel processing
- Bottleneck Analysis: Use observability data to identify bottlenecks
Security
- Secret Management: Use the secret management system for sensitive data, keyvault will be available soon.
- Least Privilege: Grant minimal permissions to addons credentials