optimize debug artifact persisting (#4717)

This commit is contained in:
LawyZheng
2026-02-13 03:59:09 +08:00
committed by GitHub
parent a78f83e9d7
commit d876862730
4 changed files with 36 additions and 6 deletions

View File

@@ -3245,6 +3245,7 @@ class WorkflowService:
workflow_run_id=workflow_run.workflow_run_id,
browser_state=browser_state,
)
LOG.debug("Persisting video data", number_of_video_artifacts=len(video_artifacts))
for video_artifact in video_artifacts:
await app.ARTIFACT_MANAGER.update_artifact_data(
artifact_id=video_artifact.video_artifact_id,
@@ -3264,6 +3265,7 @@ class WorkflowService:
workflow_run_id=workflow_run.workflow_run_id,
browser_state=browser_state,
)
LOG.debug("Persisting har data", har_size=len(har_data))
if har_data:
await app.ARTIFACT_MANAGER.create_artifact(
step=last_step,
@@ -3283,6 +3285,7 @@ class WorkflowService:
workflow_run_id=workflow_run.workflow_run_id,
browser_state=browser_state,
)
LOG.debug("Persisting browser log", browser_log_size=len(browser_log))
if browser_log:
await app.ARTIFACT_MANAGER.create_artifact(
step=last_step,