feat: add duplicate-safe workflow shadow dispatch

This commit is contained in:
2026-04-07 11:35:32 +02:00
parent 26046fb2d6
commit f43f1e7420
11 changed files with 496 additions and 113 deletions
@@ -14,10 +14,12 @@ def create_workflow_run(
workflow_def_id,
order_line_id,
workflow_context: WorkflowContext,
execution_mode: str | None = None,
) -> WorkflowRun:
run = WorkflowRun(
workflow_def_id=workflow_def_id,
order_line_id=order_line_id,
execution_mode=execution_mode or workflow_context.execution_mode,
status="pending",
started_at=datetime.utcnow(),
)