ensure default cache key for workflows is set (#3625)

This commit is contained in:
Jonathan Dobson
2025-10-06 17:09:37 -04:00
committed by GitHub
parent a3e5e27852
commit f908a88e0e

View File

@@ -8,6 +8,7 @@ from sqlalchemy.exc import SQLAlchemyError
from sqlalchemy.ext.asyncio import AsyncEngine, async_sessionmaker, create_async_engine from sqlalchemy.ext.asyncio import AsyncEngine, async_sessionmaker, create_async_engine
from skyvern.config import settings from skyvern.config import settings
from skyvern.constants import DEFAULT_SCRIPT_RUN_ID
from skyvern.exceptions import WorkflowParameterNotFound, WorkflowRunNotFound from skyvern.exceptions import WorkflowParameterNotFound, WorkflowRunNotFound
from skyvern.forge.sdk.artifact.models import Artifact, ArtifactType from skyvern.forge.sdk.artifact.models import Artifact, ArtifactType
from skyvern.forge.sdk.db.enums import OrganizationAuthTokenType, TaskType from skyvern.forge.sdk.db.enums import OrganizationAuthTokenType, TaskType
@@ -1422,7 +1423,7 @@ class AgentDB:
status=status, status=status,
run_with=run_with, run_with=run_with,
ai_fallback=ai_fallback, ai_fallback=ai_fallback,
cache_key=cache_key, cache_key=cache_key or DEFAULT_SCRIPT_RUN_ID,
run_sequentially=run_sequentially, run_sequentially=run_sequentially,
sequential_key=sequential_key, sequential_key=sequential_key,
) )