mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-09 13:56:08 +00:00
fix workflow cleanup bug when there are no tasks created for the workflow (#1279)
This commit is contained in:
parent
008369217b
commit
eec7e7c40c
1 changed files with 2 additions and 1 deletions
|
@ -820,7 +820,8 @@ class WorkflowService:
|
|||
)
|
||||
if browser_state:
|
||||
await self.persist_video_data(browser_state, workflow, workflow_run)
|
||||
await self.persist_debug_artifacts(browser_state, tasks[-1], workflow, workflow_run)
|
||||
if tasks:
|
||||
await self.persist_debug_artifacts(browser_state, tasks[-1], workflow, workflow_run)
|
||||
if workflow.persist_browser_session and browser_state.browser_artifacts.browser_session_dir:
|
||||
await app.STORAGE.store_browser_session(
|
||||
workflow.organization_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue