mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-22 08:38:13 +02:00
feat: agent versioning and model configurations override (#227)
* feat: add tests and migrations * feat: workflow versioning among published and draft * feat: add a new settings page to simplify workflow detail page * fix: fix tsclient generation
This commit is contained in:
parent
f5fa9ce717
commit
38d1d928b7
62 changed files with 10158 additions and 3131 deletions
|
|
@ -187,15 +187,9 @@ async def run_integrations_post_workflow_run(_ctx, workflow_run_id: int):
|
|||
secret_key=langfuse_config.get("secret_key"),
|
||||
)
|
||||
|
||||
# Step 2: Get workflow definition (prefer the run-specific definition)
|
||||
if workflow_run.definition:
|
||||
workflow_definition = workflow_run.definition.workflow_json
|
||||
definition_id = workflow_run.definition.id
|
||||
else:
|
||||
workflow_definition = (
|
||||
workflow_run.workflow.workflow_definition_with_fallback
|
||||
)
|
||||
definition_id = workflow_run.workflow.current_definition_id
|
||||
# Step 2: Get workflow definition from the run's pinned version
|
||||
workflow_definition = workflow_run.definition.workflow_json
|
||||
definition_id = workflow_run.definition.id
|
||||
|
||||
if not workflow_definition:
|
||||
logger.debug("No workflow definition, skipping integrations")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue