update: storage
update storage base path
This commit is contained in:
@@ -106,18 +106,18 @@ class Settings(BaseSettings):
|
|||||||
description="boto3 secret key for S3-compatible storage.",
|
description="boto3 secret key for S3-compatible storage.",
|
||||||
)
|
)
|
||||||
s3_workspace_bucket: str = Field(
|
s3_workspace_bucket: str = Field(
|
||||||
default="workspaces",
|
default="workspace",
|
||||||
description=(
|
description=(
|
||||||
"Bucket for workspace files (notebooks / scripts / working "
|
"Bucket for workspace files (notebooks / scripts / working "
|
||||||
"copies). Layout: s3://<bucket>/<workspace_id>/..."
|
"copies). Layout: s3://<bucket>/<workspace_id>/..."
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
s3_version_bucket: str = Field(
|
s3_version_bucket: str = Field(
|
||||||
default="versions",
|
default="version",
|
||||||
description="Bucket for immutable script-version artifacts.",
|
description="Bucket for immutable script-version artifacts.",
|
||||||
)
|
)
|
||||||
s3_run_log_bucket: str = Field(
|
s3_run_log_bucket: str = Field(
|
||||||
default="run-logs",
|
default="run-log",
|
||||||
description="Bucket for schedule run logs.",
|
description="Bucket for schedule run logs.",
|
||||||
)
|
)
|
||||||
s3_trash_bucket: str = Field(
|
s3_trash_bucket: str = Field(
|
||||||
|
|||||||
@@ -137,9 +137,7 @@ def workspaces_root() -> Path:
|
|||||||
"""
|
"""
|
||||||
from common.config import settings # 延迟 import 避免循环
|
from common.config import settings # 延迟 import 避免循环
|
||||||
base = Path(settings.local_storage_base_dir)
|
base = Path(settings.local_storage_base_dir)
|
||||||
if settings.storage_backend == "local":
|
|
||||||
return base / "workspace"
|
return base / "workspace"
|
||||||
return base / "workspaces"
|
|
||||||
|
|
||||||
|
|
||||||
# rclone remote 名字。跟 docker-compose 里的 ``RCLONE_CONFIG_<NAME>_*`` 命名空间
|
# rclone remote 名字。跟 docker-compose 里的 ``RCLONE_CONFIG_<NAME>_*`` 命名空间
|
||||||
|
|||||||
Reference in New Issue
Block a user