feat: stage-isolated infrastructure — separate Postgres DBs, Redis DBs, and MinIO bucket prefixes per stage
This commit is contained in:
@@ -30,7 +30,7 @@ from services.shared.schemas import (
|
||||
ModelMetadata,
|
||||
SeverityLevel,
|
||||
)
|
||||
from services.shared.storage import upload_artifact
|
||||
from services.shared.storage import _prefixed, upload_artifact
|
||||
|
||||
logger = logging.getLogger("event_classifier")
|
||||
|
||||
@@ -381,7 +381,7 @@ def _upload_classification_prompt(
|
||||
f"{document_id}/prompt.json"
|
||||
)
|
||||
return upload_artifact(
|
||||
minio_client, "stonks-llm-prompts", path, payload,
|
||||
minio_client, _prefixed("stonks-llm-prompts"), path, payload,
|
||||
content_type="application/json",
|
||||
)
|
||||
|
||||
@@ -421,7 +421,7 @@ def _upload_classification_result(
|
||||
f"{document_id}/result.json"
|
||||
)
|
||||
return upload_artifact(
|
||||
minio_client, "stonks-llm-results", path, payload,
|
||||
minio_client, _prefixed("stonks-llm-results"), path, payload,
|
||||
content_type="application/json",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user