XennaExecutor
XennaExecutor is the production executor that uses Cosmos-Xenna for distributed execution. It’s the default executor used when running pipelines.
Import
Class Definition
Configuration Options
Usage Examples
Default Configuration
Custom Configuration
Streaming vs Batch Mode
Streaming Mode
Batch Mode
Processes tasks as they become available:
Best for:
- Large datasets
- Memory-constrained environments
- Real-time processing
Waits for all tasks before processing:
Best for:
- Small to medium datasets
- Operations requiring global ordering
- When task dependencies span batches
Methods
execute()
Execute the pipeline stages.
Error Handling
Performance Monitoring
The executor automatically collects performance metrics: