Execution engine¶
Engine and configuration¶
Use Uptimely.run() or Uptimely.create_engine() to apply project configuration. Constructing
Engine directly does not load a TOML file. Supply EngineConfig, parameters,
and paths explicitly when using it independently.
Execution engine for plans in validated project build bundles.
Engine
¶
Execute the plan in a validated project build bundle.
parameters
instance-attribute
¶
parameters = project_config.Params.model_validate({} if parameters is None else dict(parameters)).root
paths
instance-attribute
¶
code_settings
instance-attribute
¶
check_plan_backend
¶
Require the built-in backend to support the saved plan.
Raises:
| Type | Description |
|---|---|
ValueError
|
The plan requires a different dataframe backend. |
run
¶
run(*, validate: bool = False, preview_rows: int | None = None, operator: tuple[str, str] | None = None, src_path: Path | None = None) -> result.ExecutionResult
Execute the plan and overwrite the project's latest-run artifacts.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
validate
|
bool
|
Check invocation inputs and outputs against their analytical contracts. Lazy checks may execute upstream queries repeatedly. |
False
|
preview_rows
|
int | None
|
Positive maximum sample size per profile. Defaults to the Engine config value. Lazy previews execute bounded queries after execution; timing excludes previews. |
None
|
operator
|
tuple[str, str] | None
|
Request targeted execution, which is not yet supported. |
None
|
src_path
|
Path | None
|
Optional source directory, relative to the project root unless absolute. Defaults to bundled source, then configured or default project source. |
None
|
Returns:
| Type | Description |
|---|---|
ExecutionResult
|
Dataset aliases, invocation statuses, execution duration, collected |
ExecutionResult
|
preview frames, and separately reported preview failures. Calculated |
ExecutionResult
|
feature outputs are unavailable and reported as None. |
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
Targeted execution was requested. |
OSError
|
Run artifacts cannot be persisted. |
ValueError
|
The preview row limit is invalid. The Python runtime requirements are invalid or not satisfied. |
Runtime configuration for project plan execution.
EngineConfig
¶
Bases: BaseModel
Runtime configuration for an execution engine.