Context Agent can stop claiming tasks while /trigger still returns 200
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 57/100
Hướng nghiên cứu
Start by reading background_thread_task() and next_task(), the polling entry points named in the issue. Check how the background poller is started and what happens when task acquisition stalls or exits; the report does not identify a test file. Done means the poller is supervised, task acquisition is bounded, and unexpected stops are logged, with processing able to continue after a transient backend failure.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I'm running Context Agent 2.9.1 with Nextcloud 35 on Kubernetes.
I ran into a situation where new tasks stayed SCHEDULED for over 10 minutes, even though /trigger returned HTTP 200 and the ExApp pod remained healthy. The agent wasn't logging any new task pickups or obvious polling errors.
Looking at background_thread_task(), the poller is started without supervision and next_task() has no explicit timeout. If that coroutine exits or gets stuck, the HTTP server can apparently remain healthy.
I tried a local patch with a supervised polling loop, a timeout around next_task(), and some basic lifecycle logging. I also tested temporarily disconnecting my LocalAI backend: the model request failed as expected, but the agent continued processing new requests after connectivity was restored, without restarting the pod.
I can't confirm that a LocalAI failure caused the original stuck poller, but the current polling implementation seems worth hardening.
Would it make sense to add supervision, bounded task acquisition, and better logging when the background poller unexpectedly stops?
- Ngôn ngữ chính
- Python
- Star
- 26
- Fork
- 20
- Merge trung bình
- 2 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nextcloud/context_agent
-
enhancement priority normal
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
nextcloud/context_agent#270 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
nextcloud/context_agent#242 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
nextcloud/context_agent#240 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
find_person_in_contacts fails with Niquests content argument and cannot serialize vCard AddressĐang mởbug
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 76/100
nextcloud/context_agent#217 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Failed to schedule taskĐang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
nextcloud/context_agent#271 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của nextcloud/context_agent
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
UKGovernmentBEIS/control-arena#917 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
debpalash/VoiceStudio#2937 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
aws-samples/sample-per-model-bedrock#261 ·
Maintainer thường phản hồi trong vòng 1 ngày