From e17b3baf170cb0b15e044f19d5eacec2dbad9f5c Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Fri, 24 Oct 2025 16:15:05 -0700 Subject: [PATCH] fix settings in email api (#3814) --- .../src/routes/workflows/editor/workflowEditorUtils.ts | 2 -- .../src/routes/workflows/types/workflowYamlTypes.ts | 1 - skyvern/forge/sdk/api/email.py | 3 ++- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts index 797dbccb..5f5a19d2 100644 --- a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts +++ b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts @@ -1089,7 +1089,6 @@ function getWorkflowBlock(node: WorkflowBlockNode): BlockYAML { totp_identifier: node.data.totpIdentifier, totp_verification_url: node.data.totpVerificationUrl, url: node.data.url, - disable_cache: node.data.disableCache ?? false, }; } case "validation": { @@ -1895,7 +1894,6 @@ function convertBlocksToBlockYAML( max_steps: block.max_steps, totp_identifier: block.totp_identifier, totp_verification_url: block.totp_verification_url, - disable_cache: block.disable_cache ?? false, }; return blockYaml; } diff --git a/skyvern-frontend/src/routes/workflows/types/workflowYamlTypes.ts b/skyvern-frontend/src/routes/workflows/types/workflowYamlTypes.ts index b548833b..c44fdaba 100644 --- a/skyvern-frontend/src/routes/workflows/types/workflowYamlTypes.ts +++ b/skyvern-frontend/src/routes/workflows/types/workflowYamlTypes.ts @@ -174,7 +174,6 @@ export type Taskv2BlockYAML = BlockYAMLBase & { totp_verification_url: string | null; totp_identifier: string | null; max_steps: number | null; - disable_cache: boolean; }; export type ValidationBlockYAML = BlockYAMLBase & { diff --git a/skyvern/forge/sdk/api/email.py b/skyvern/forge/sdk/api/email.py index abe32d2b..b3baebfa 100644 --- a/skyvern/forge/sdk/api/email.py +++ b/skyvern/forge/sdk/api/email.py @@ -4,9 +4,10 @@ from email.message import EmailMessage import structlog from email_validator import EmailNotValidError, validate_email -from skyvern.config import settings +from skyvern.forge.sdk.settings_manager import SettingsManager LOG = structlog.get_logger() +settings = SettingsManager.get_settings() async def _send(*, message: EmailMessage) -> bool: