feat: stage-isolated infrastructure — separate Postgres DBs, Redis DBs, and MinIO bucket prefixes per stage
This commit is contained in:
@@ -12,6 +12,8 @@ from dataclasses import dataclass, field
|
||||
from datetime import datetime
|
||||
from typing import Any
|
||||
|
||||
from services.shared.storage import _prefixed
|
||||
|
||||
|
||||
@dataclass
|
||||
class AdapterResult:
|
||||
@@ -71,7 +73,7 @@ class BaseAdapter(ABC):
|
||||
|
||||
Override in subclasses if the bucket differs from the default pattern.
|
||||
"""
|
||||
return f"stonks-raw-{self.source_type().replace('_api', '').replace('_', '-')}"
|
||||
return _prefixed(f"stonks-raw-{self.source_type().replace('_api', '').replace('_', '-')}")
|
||||
|
||||
def artifact_path(self, ticker: str, document_id: str, now: datetime) -> str:
|
||||
"""Build the MinIO object path for a raw artifact.
|
||||
|
||||
Reference in New Issue
Block a user