cursus.mods.exe_doc.generator¶
Main execution document generator class.
This module provides the core ExecutionDocumentGenerator class that orchestrates the generation of execution documents from PipelineDAG and configuration data.
- class ExecutionDocumentGenerator(config_path, sagemaker_session=None, role=None, config_resolver=None, project_root=None, anchor_file=None)[source]¶
Bases:
objectStandalone execution document generator.
Takes a PipelineDAG and configuration data as input, generates execution documents by collecting and processing step configurations independently from the pipeline generation system.
- fill_execution_document(dag, execution_document)[source]¶
Fill in the execution document with pipeline metadata.
This method uses an optimized approach: 1. First identify which steps need execution document processing 2. Filter steps by helper type 3. Only call helper-specific methods if relevant steps exist
- Parameters:
dag (PipelineDAG) – PipelineDAG defining the pipeline structure
execution_document (Dict[str, Any]) – Execution document to fill
- Returns:
Updated execution document
- Raises:
ExecutionDocumentGenerationError – If generation fails
- Return type: