fix storage_backend value and docker image versions

This commit is contained in:
Sabiha Khan 2025-09-09 16:37:05 +05:30
parent 695b43af28
commit d28991fc60
2 changed files with 16 additions and 4 deletions

View file

@ -14,6 +14,7 @@ from api.db.models import (
WorkflowModel,
WorkflowRunModel,
)
from api.enums import StorageBackend
from api.schemas.workflow import WorkflowRunResponseSchema
@ -67,6 +68,9 @@ class WorkflowRunClient(BaseDBClient):
)
current_def = current_def_result.scalars().first()
# Get the current storage backend based on ENABLE_AWS_S3 flag
current_backend = StorageBackend.get_current_backend()
new_run = WorkflowRunModel(
name=name,
workflow=workflow,
@ -75,6 +79,7 @@ class WorkflowRunClient(BaseDBClient):
initial_context=initial_context or workflow.template_context_variables,
campaign_id=campaign_id,
queued_run_id=queued_run_id,
storage_backend=current_backend.value,
)
session.add(new_run)
try: