task assignment add failure count

This commit is contained in:
luo 2025-08-27 17:12:39 +08:00
parent 850845e342
commit 38f150346d
2 changed files with 3 additions and 1 deletions

View file

@ -143,6 +143,7 @@ class Workforce(BaseWorkforce):
"task_id": item.task_id,
"content": content,
"state": "waiting", # Mark as waiting state
"failure_count": 0,
},
)
)
@ -166,6 +167,7 @@ class Workforce(BaseWorkforce):
"task_id": task.id,
"content": task.content,
"state": "running", # running state
"failure_count": task.failure_count,
},
)
)