migrate to wait_for_upload_aiotasks for aiotasks cleanup (#1353)
This commit is contained in:
@@ -1536,7 +1536,7 @@ class ForgeAgent:
|
||||
await self.cleanup_browser_and_create_artifacts(close_browser_on_completion, last_step, task)
|
||||
|
||||
# Wait for all tasks to complete before generating the links for the artifacts
|
||||
await app.ARTIFACT_MANAGER.wait_for_upload_aiotasks_for_task(task.task_id)
|
||||
await app.ARTIFACT_MANAGER.wait_for_upload_aiotasks([task.task_id])
|
||||
|
||||
if need_call_webhook:
|
||||
await self.execute_task_webhook(task=task, last_step=last_step, api_key=api_key)
|
||||
|
||||
Reference in New Issue
Block a user