AsyncOperation: support for running asynchronous jobs while the agent is running (#111)

This commit is contained in:
Kerem Yilmaz
2024-03-19 09:12:28 -07:00
committed by GitHub
parent a5e84187e2
commit 1e933b703f
5 changed files with 163 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ from playwright._impl._errors import TimeoutError
from playwright.async_api import BrowserContext, Error, Page, Playwright, async_playwright
from pydantic import BaseModel
from skyvern.config import settings
from skyvern.exceptions import (
FailedToNavigateToUrl,
FailedToTakeScreenshot,
@@ -61,7 +62,7 @@ class BrowserContextFactory:
],
"record_har_path": har_dir,
"record_video_dir": video_dir,
"viewport": {"width": 1920, "height": 1080},
"viewport": {"width": settings.BROWSER_WIDTH, "height": settings.BROWSER_HEIGHT},
}
@staticmethod