This description was created by Ellipsis for commit b8dc27d40eafb68397e45c904816b114d2e9db1f
Summary:
Introduced task_cleanup methods and browser context timeout for efficient Chrome process and browser state management, with enhanced error handling and updates across multiple files.
Key points:
Introduced task_cleanup methods for Chrome process and browser state management.
Added task_cleanup in cloud/agent_functions.py to terminate Chrome processes.
Implemented task_cleanup in skyvern/forge/agent_functions.py for browser state handling.
Updated skyvern/forge/agent.py to call task_cleanup during send_task_response.
Enhanced skyvern/webeye/browser_manager.py to handle TimeoutError during task cleanup.
Added BROWSER_CLOSE_TIMEOUT constant in skyvern/constants.py for browser context close timeout.
Updated BrowserManager.cleanup_for_task to use asyncio.timeout for closing browser contexts.
Added handling for TimeoutError in cleanup_for_task to log a warning if timeout occurs.
Integrated cleanup_browser_and_create_artifacts into task_cleanup.
Moved Chrome process termination to workers/temporal_workflows.py.
Summary:
Introduced
task_cleanup
methods and browser context timeout for efficient Chrome process and browser state management, with enhanced error handling and updates across multiple files.Key points:
task_cleanup
methods for Chrome process and browser state management.task_cleanup
incloud/agent_functions.py
to terminate Chrome processes.task_cleanup
inskyvern/forge/agent_functions.py
for browser state handling.skyvern/forge/agent.py
to calltask_cleanup
duringsend_task_response
.skyvern/webeye/browser_manager.py
to handleTimeoutError
during task cleanup.BROWSER_CLOSE_TIMEOUT
constant inskyvern/constants.py
for browser context close timeout.BrowserManager.cleanup_for_task
to useasyncio.timeout
for closing browser contexts.TimeoutError
incleanup_for_task
to log a warning if timeout occurs.cleanup_browser_and_create_artifacts
intotask_cleanup
.workers/temporal_workflows.py
.Generated with :heart: by ellipsis.dev