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
Methods
execute()
Execute the pipeline stages.
Error Handling
Performance Monitoring
The executor automatically collects performance metrics: