mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-13 08:15:21 +02:00
fix storage_backend value and docker image versions
This commit is contained in:
parent
695b43af28
commit
d28991fc60
2 changed files with 16 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue