chronaxis.load_batch_plan
Import this object from chronaxis. This page covers its directly public members and necessary construction/context protocols. See the Chinese implementation reference for internals. Return to the public API index. Check required parameters, defaults, returns, and exceptions before calling.
load_batch_plan
Read a batch YAML/JSON file and construct its independent tasks and scheduling settings.
load_batch_plan(path: str | Path) -> BatchPlan| Name | Type | Required | Default | Purpose, choices, and effect |
|---|---|---|---|---|
path |
str | Path | Yes | No default | Positional or keyword. Batch JSON/YAML path. Child plans, templates, and input paths are relative to this file. jobs plans load when each task starts; template expands and compiles independent plans during this call. |
Returns an immutable BatchPlan with checked batch structure. Templates are expanded, while jobs retain paths. Neither reads business-input records at this stage.
Raises PlanValidationError for path, syntax, batch-field, or template-expansion failures. Child-plan errors in jobs are recorded when a task starts; template compilation errors are reported before this call returns.
Side effects: reads the batch file; template mode also reads the template and necessary DBCs and enumerates inputs. Creates no output directories.
from chronaxis import load_batch_plan
# Prepare batch.yaml and its child plans as described in the batch guide.
plan = load_batch_plan("batch.yaml")Source locations
src/chronaxis/batch/config.py:14— line at8904c2f744951857659abd40aaa3535d57faf53c.