Context Agent can stop claiming tasks while /trigger still returns 200
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 57/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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?
- Lingua principale
- Python
- Stelle
- 26
- Fork
- 20
- Merge medio
- 2g 9h
- PR unite (30g)
- 4
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nextcloud/context_agent
-
enhancement priority normal
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
nextcloud/context_agent#270 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
nextcloud/context_agent#242 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
nextcloud/context_agent#240 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
find_person_in_contacts fails with Niquests content argument and cannot serialize vCard AddressApertabug
Difficoltà 2/5 Mezza giornata Idoneità per principianti 76/100
nextcloud/context_agent#217 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Failed to schedule taskApertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 22/100
nextcloud/context_agent#271 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di nextcloud/context_agent
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
aws-samples/sample-per-model-bedrock#261 ·
I maintainer di solito rispondono entro 1 giorno
-
[UI/Accessibility] Low contrast text visibility in country selection dropdown on settings pageAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
pwncollege/dojo#1188 ·
I maintainer di solito rispondono entro 1 giorno
-
bug launcher packaging
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
tenstorrent/tt-studio#1426 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
python-attrs/cattrs#796 ·
I maintainer di solito rispondono entro 1 giorno