fix: handle workflow run update failures

This commit is contained in:
Sabiha Khan 2026-07-21 19:06:20 +05:30
parent ebacfaad4a
commit d1e5d84878
2 changed files with 88 additions and 4 deletions

View file

@ -345,10 +345,16 @@ async def _execute_resolved_target(
if target.identifier_type == "trigger_path":
gathered_context["trigger_uuid"] = target.identifier_value
await db_client.update_workflow_run(
run_id=workflow_run.id,
gathered_context=gathered_context,
)
try:
await db_client.update_workflow_run(
run_id=workflow_run.id,
gathered_context=gathered_context,
)
except Exception as e:
logger.warning(
f"Call initiated for workflow run {workflow_run.id}, but failed to "
f"persist provider metadata: {e}"
)
logger.info(
f"Call initiated successfully for workflow run {workflow_run.id} "