Skip to content

Commit

Permalink
Fix xinfo_groups returns unexpected result (infiniflow#4026)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

Fix xinfo_groups returns unexpected result. Close infiniflow#3545 

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
  • Loading branch information
yuzhichang authored Dec 13, 2024
1 parent 86507af commit 9b2ef62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rag/svr/task_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,8 @@ def report_status():
now = datetime.now()
group_info = REDIS_CONN.queue_info(SVR_QUEUE_NAME, "rag_flow_svr_task_broker")
if group_info is not None:
PENDING_TASKS = int(group_info["pending"])
LAG_TASKS = int(group_info["lag"])
PENDING_TASKS = int(group_info.get("pending", 0))
LAG_TASKS = int(group_info.get("lag", 0))

with mt_lock:
heartbeat = json.dumps({
Expand Down

0 comments on commit 9b2ef62

Please sign in to comment.