mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-07-25 12:01:04 +02:00
fix: handle workflow run update failures
This commit is contained in:
parent
ebacfaad4a
commit
d1e5d84878
2 changed files with 88 additions and 4 deletions
|
|
@ -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} "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue