feat: stabilize workflow phase 1 foundation
This commit is contained in:
@@ -680,35 +680,36 @@ async def seed_workflows(
|
||||
):
|
||||
"""Create the standard workflow definitions if they do not already exist."""
|
||||
from app.domains.rendering.models import WorkflowDefinition
|
||||
from app.domains.rendering.workflow_config_utils import build_preset_workflow_config
|
||||
|
||||
STANDARD_WORKFLOWS = [
|
||||
{
|
||||
"name": "Still Image — Cycles",
|
||||
"config": {
|
||||
"type": "still",
|
||||
"params": {"render_engine": "cycles", "samples": 256, "resolution": [1920, 1080]},
|
||||
},
|
||||
"config": build_preset_workflow_config(
|
||||
"still",
|
||||
{"render_engine": "cycles", "samples": 256, "resolution": [1920, 1080]},
|
||||
),
|
||||
},
|
||||
{
|
||||
"name": "Still Image — EEVEE",
|
||||
"config": {
|
||||
"type": "still",
|
||||
"params": {"render_engine": "eevee", "samples": 64, "resolution": [1920, 1080]},
|
||||
},
|
||||
"config": build_preset_workflow_config(
|
||||
"still",
|
||||
{"render_engine": "eevee", "samples": 64, "resolution": [1920, 1080]},
|
||||
),
|
||||
},
|
||||
{
|
||||
"name": "Turntable Animation",
|
||||
"config": {
|
||||
"type": "turntable",
|
||||
"params": {"render_engine": "cycles", "samples": 64, "fps": 24, "duration_s": 5},
|
||||
},
|
||||
"config": build_preset_workflow_config(
|
||||
"turntable",
|
||||
{"render_engine": "cycles", "samples": 64, "fps": 24, "duration_s": 5},
|
||||
),
|
||||
},
|
||||
{
|
||||
"name": "Multi-Angle (0° / 45° / 90°)",
|
||||
"config": {
|
||||
"type": "multi_angle",
|
||||
"params": {"render_engine": "cycles", "samples": 128, "angles": [0, 45, 90]},
|
||||
},
|
||||
"config": build_preset_workflow_config(
|
||||
"multi_angle",
|
||||
{"render_engine": "cycles", "samples": 128, "angles": [0, 45, 90]},
|
||||
),
|
||||
},
|
||||
]
|
||||
|
||||
@@ -1093,4 +1094,3 @@ async def get_dashboard_stats(
|
||||
product_stats=product_stats,
|
||||
order_status=order_status,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user