Implemented durable workflow/job foundation

This commit is contained in:
2026-05-06 18:32:10 +02:00
parent 43c06d6024
commit 3b5f96e159
12 changed files with 2091 additions and 9 deletions

View File

@@ -25,6 +25,9 @@ from kontextual_engine.core import (
Sensitivity,
TransformationRun,
TransformationRunStatus,
WorkflowRun,
WorkflowRunStatus,
WorkflowTemplate,
)
@@ -131,3 +134,25 @@ class AssetRegistryRepository(Protocol):
source_asset_id: str | None = None,
transformation_run_id: str | None = None,
) -> list[DerivedArtifactLineage]: ...
def save_workflow_template(self, template: WorkflowTemplate) -> WorkflowTemplate: ...
def get_workflow_template(
self,
template_id: str,
*,
version: str | None = None,
) -> WorkflowTemplate: ...
def list_workflow_templates(
self,
*,
template_id: str | None = None,
) -> list[WorkflowTemplate]: ...
def save_workflow_run(self, run: WorkflowRun) -> WorkflowRun: ...
def get_workflow_run(self, run_id: str) -> WorkflowRun: ...
def list_workflow_runs(
self,
*,
status: WorkflowRunStatus | None = None,
template_id: str | None = None,
) -> list[WorkflowRun]: ...