Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
make totp code fetch more reliable (#809)
Shuchang Zheng2b365bce598c
diff --git a/skyvern/config.py b/skyvern/config.pyindex d2235dd27..ce2eb7dae 100644--- a/skyvern/config.py+++ b/skyvern/config.py@@ -119,6 +119,7 @@ class Settings(BaseSettings):# TOTP SettingsTOTP_LIFESPAN_MINUTES: int = 10+ VERIFICATION_CODE_INITIAL_WAIT_TIME_SECS: int = 40VERIFICATION_CODE_POLLING_TIMEOUT_MINS: int = 5def is_cloud_environment(self) -> bool:diff --git a/skyvern/forge/agent.py b/skyvern/forge/agent.pyindex 5fd5cfbad..61252e22a 100644--- a/skyvern/forge/agent.py+++ b/skyvern/forge/agent.py@@ -1617,7 +1617,7 @@ class ForgeAgent:browser_state,element_tree_in_prompt,verification_code_check=False,- expire_verification_code=False,+ expire_verification_code=True,)return await app.LLM_API_HANDLER(prompt=extract_action_prompt,diff --git a/skyvern/webeye/actions/handler.py b/skyvern/webeye/actions/handler.pyindex fa8ae0739..d7fc4501a 100644--- a/skyvern/webeye/actions/handler.py+++ b/skyvern/webeye/actions/handler.py@@ -2118,6 +2118,8 @@ async def poll_verification_code(if not org_token:LOG.error("Failed to get organization token when trying to get verification code")return None+ # wait for 40 seconds to let the verification code comes in before polling+ await asyncio.sleep(SettingsManager.get_settings().VERIFICATION_CODE_INITIAL_WAIT_TIME_SECS)while True:# check timeoutif datetime.utcnow() > timeout_datetime: