Refactor ENVI D-InSAR production runs

This commit is contained in:
2026-04-16 17:09:24 +08:00
parent 5bdcaf74df
commit d83cdfea52
12 changed files with 1796 additions and 33 deletions
+3
View File
@@ -57,6 +57,7 @@ class WorkflowService:
"payload": step.get("payload") or {},
"task_id": step.get("task_id"),
"optional": bool(step.get("optional", False)),
"max_attempts": step.get("max_attempts"),
}
db.add(
WorkflowStepORM(
@@ -101,12 +102,14 @@ class WorkflowService:
continue
payload = params.get("payload") or {}
task_id = params.get("task_id")
max_attempts = params.get("max_attempts")
await job_queue_service.create_job(
job_type,
payload=payload,
workflow_run_id=run_id,
workflow_step_id=step.step_id,
task_id=task_id,
max_attempts=max_attempts if max_attempts is not None else 3,
db=db,
)
step.status = "RUNNING"