feat: add duplicate-safe workflow shadow dispatch
This commit is contained in:
@@ -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(),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user