Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
fix(SKY-10635): extend credential test poll timeout to 10 minutes (#6359)
Celal Zamanoğluae729099a99d
diff --git a/skyvern-frontend/src/routes/credentials/CredentialsModal.tsx b/skyvern-frontend/src/routes/credentials/CredentialsModal.tsxindex 26f66e0b7..0c1294054 100644--- a/skyvern-frontend/src/routes/credentials/CredentialsModal.tsx+++ b/skyvern-frontend/src/routes/credentials/CredentialsModal.tsx@@ -69,8 +69,8 @@ const SECRET_CREDENTIAL_INITIAL_VALUES = {secretValue: "",};-// Maximum polling duration: 5 minutes-const MAX_POLL_DURATION_MS = 5 * 60 * 1000;+// Maximum polling duration: 10 minutes (matches the backend profile-creation budget)+const MAX_POLL_DURATION_MS = 10 * 60 * 1000;// Progressive status messages during test — each advances once at a real intervalconst TEST_STATUS_MESSAGES = [@@ -364,12 +364,12 @@ function CredentialsModal({pollIntervalRef.current = null;setTestStatus("failed");setTestFailureReason(- "The test timed out after 5 minutes. The login may be taking too long or requires manual interaction.",+ "The test timed out after 10 minutes. The login may be taking too long or requires manual interaction.",);toast({title: "Credential test timed out",description:- "The test did not complete within 5 minutes. Please try again.",+ "The test did not complete within 10 minutes. Please try again.",variant: "destructive",});// Cancel the backend workflow run so it stops consuming resourcesdiff --git a/skyvern-frontend/src/routes/credentials/useBackgroundCredentialTest.ts b/skyvern-frontend/src/routes/credentials/useBackgroundCredentialTest.tsindex f304ffa25..5e2f87b84 100644--- a/skyvern-frontend/src/routes/credentials/useBackgroundCredentialTest.ts+++ b/skyvern-frontend/src/routes/credentials/useBackgroundCredentialTest.ts@@ -10,7 +10,7 @@ import type {import { getHostname } from "@/util/getHostname";import { useCredentialTestStore } from "@/store/useCredentialTestStore";-const MAX_POLL_DURATION_MS = 5 * 60 * 1000;+const MAX_POLL_DURATION_MS = 10 * 60 * 1000;const POLL_INTERVAL_MS = 5000;const MAX_CONSECUTIVE_ERRORS = 10;@@ -85,7 +85,7 @@ function useBackgroundCredentialTest() {toast({title: "Browser profile test timed out",description:- "The test did not complete within 5 minutes. Your credential is saved but without a browser profile.",+ "The test did not complete within 10 minutes. Your credential is saved but without a browser profile.",variant: "destructive",});return;