mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
address greptile review feedback (greploop iteration 9)
- Scope report_task_result success path to status='pending' to avoid resetting error counters on terminal-state rows Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
7a85c11ad4
commit
3a9aecf236
1 changed files with 5 additions and 1 deletions
|
|
@ -175,7 +175,11 @@ async def report_task_result(
|
|||
|
||||
if result == "success":
|
||||
affected = await prisma_client.db.litellm_scheduledtasktable.update_many(
|
||||
where={"task_id": task_id, "owner_token": owner_token},
|
||||
where={
|
||||
"task_id": task_id,
|
||||
"owner_token": owner_token,
|
||||
"status": "pending",
|
||||
},
|
||||
data={"consecutive_errors": 0, "last_error": None},
|
||||
)
|
||||
if affected == 0:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue