feat: stabilize workflow phase 1 foundation
This commit is contained in:
@@ -77,8 +77,17 @@ def dispatch_render_with_workflow(order_line_id: str) -> dict:
|
||||
)
|
||||
return _legacy_dispatch(order_line_id)
|
||||
|
||||
workflow_type = wf_def.config.get("type")
|
||||
params = wf_def.config.get("params", {})
|
||||
from app.domains.rendering.workflow_config_utils import extract_runtime_workflow
|
||||
|
||||
workflow_type, params = extract_runtime_workflow(wf_def.config)
|
||||
if workflow_type is None or workflow_type == "custom":
|
||||
logger.warning(
|
||||
"order_line %s: workflow_definition_id %s has no supported preset runtime, "
|
||||
"falling back to legacy dispatch",
|
||||
order_line_id,
|
||||
wf_def.id,
|
||||
)
|
||||
return _legacy_dispatch(order_line_id)
|
||||
|
||||
logger.info(
|
||||
"order_line %s: dispatching via WorkflowDefinition %s (type=%s)",
|
||||
|
||||
Reference in New Issue
Block a user