mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
removed potential wiping of task start timestamp
This commit is contained in:
parent
512fa1e469
commit
f791a5328d
2 changed files with 3 additions and 4 deletions
|
|
@ -194,13 +194,12 @@ class SubTaskInterface:
|
|||
|
||||
elif "in progress" in statuses:
|
||||
task.status = "in progress"
|
||||
if task.job_started is None:
|
||||
task.job_started = now
|
||||
# if task.job_started is None:
|
||||
# task.job_started = now
|
||||
|
||||
else:
|
||||
# All waiting
|
||||
task.status = "waiting"
|
||||
task.job_started = None
|
||||
task.job_completed = None
|
||||
|
||||
task.updated_at = now
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ async def trigger_plan_entrypoint(body: PlanTriggerRequest):
|
|||
task_source="backend/plan/router.py:trigger_plan_entrypoint",
|
||||
service="plan_engine",
|
||||
inputs=data,
|
||||
task_only=False
|
||||
task_only=False,
|
||||
)
|
||||
data["task_id"] = str(task_id)
|
||||
data["subtask_id"] = str(subtask_id)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue