mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-01 21:20:15 +00:00
task assignment add failure count
This commit is contained in:
parent
850845e342
commit
38f150346d
2 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||
},
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue