From ec57fb6c7e9f1fb859da35361a5a8560486c2abb Mon Sep 17 00:00:00 2001 From: "tao.chen" <93983997+taochen-ct@users.noreply.github.com> Date: Fri, 7 Aug 2026 14:37:56 +0800 Subject: [PATCH] update: storage update storage base path --- common/src/common/config.py | 6 +++--- common/src/common/storage/factory.py | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/common/src/common/config.py b/common/src/common/config.py index aea61cc..28cb4d1 100644 --- a/common/src/common/config.py +++ b/common/src/common/config.py @@ -106,18 +106,18 @@ class Settings(BaseSettings): description="boto3 secret key for S3-compatible storage.", ) s3_workspace_bucket: str = Field( - default="workspaces", + default="workspace", description=( "Bucket for workspace files (notebooks / scripts / working " "copies). Layout: s3:////..." ), ) s3_version_bucket: str = Field( - default="versions", + default="version", description="Bucket for immutable script-version artifacts.", ) s3_run_log_bucket: str = Field( - default="run-logs", + default="run-log", description="Bucket for schedule run logs.", ) s3_trash_bucket: str = Field( diff --git a/common/src/common/storage/factory.py b/common/src/common/storage/factory.py index 46ca7cb..6d41344 100644 --- a/common/src/common/storage/factory.py +++ b/common/src/common/storage/factory.py @@ -137,9 +137,7 @@ def workspaces_root() -> Path: """ from common.config import settings # 延迟 import 避免循环 base = Path(settings.local_storage_base_dir) - if settings.storage_backend == "local": - return base / "workspace" - return base / "workspaces" + return base / "workspace" # rclone remote 名字。跟 docker-compose 里的 ``RCLONE_CONFIG__*`` 命名空间