Failed to schedule task
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 22/100
Rechercherichtung
The traceback points to raise Exception("Failed to schedule task") in /ex_app/lib/nc_model.py at _schedule_task (line 210), reached from _astream (line 368) during the agent's call_model in lib/agent.py. Start by reading why _schedule_task returns no task, and check how the Nextcloud task-scheduling call behaves when it fails. Done means the root cause of the scheduling failure is identified and the error path is handled or explained. Reproducing it needs a running Nextcloud with the context_agent app, so ask the reporter for the steps first.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Steps to reproduce
- It gave this error, so I just turned it off, unregistered it, put it back on and it still came up.
Expected behaviour
Tell us what should happen
Actual behaviour
Tell us what happens instead, if possible also add a screenshot
I only just noticed this happening, so I don't know if it'll persist, but here's the logs.
2026-10-16 00:06:16,900 - context_agent - INFO - New Task incoming
2026-10-16 00:06:17,071 - context_agent - INFO - {'type': 'core:contextagent:multimodal-interaction', 'input': 'Can you see the last 10 emails that came from *****.', 'confirmation': 0, 'conversation_token': '', 'memories': [], 'input_attachments': []}
/ex_app/lib/all_tools/calendar.py:21: DeprecationWarning: Sync Nextcloud/NextcloudApp classes are deprecated and will be removed in v0.31.0. Migrate to AsyncNextcloud/AsyncNextcloudApp.
ncSync = NextcloudApp()
2026-10-16 00:06:42,571 - context_agent - ERROR - Error: Traceback (most recent call last):
File "/ex_app/lib/main.py", line 268, in handle_task
output = await react(task, nextcloud, stream_output=stream_output if stream_updates_enabled else None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ex_app/lib/agent.py", line 262, in react
async for event in graph.astream(new_input, thread, stream_mode=stream_mode):
File "/root/.cache/pypoetry/virtualenvs/context-agent-il7asoJj-py3.11/lib/python3.11/site-packages/langgraph/pregel/main.py", line 3000, in astream
async for _ in runner.atick(
File "/root/.cache/pypoetry/virtualenvs/context-agent-il7asoJj-py3.11/lib/python3.11/site-packages/langgraph/pregel/_runner.py", line 410, in atick
_panic_or_proceed(
File "/root/.cache/pypoetry/virtualenvs/context-agent-il7asoJj-py3.11/lib/python3.11/site-packages/langgraph/pregel/_runner.py", line 520, in _panic_or_proceed
raise exc
File "/root/.cache/pypoetry/virtualenvs/context-agent-il7asoJj-py3.11/lib/python3.11/site-packages/langgraph/pregel/_retry.py", line 137, in arun_with_retry
return await task.proc.ainvoke(task.input, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/context-agent-il7asoJj-py3.11/lib/python3.11/site-packages/langgraph/_internal/_runnable.py", line 705, in ainvoke
input = await asyncio.create_task(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/context-agent-il7asoJj-py3.11/lib/python3.11/site-packages/langgraph/_internal/_runnable.py", line 473, in ainvoke
ret = await self.afunc(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ex_app/lib/agent.py", line 195, in call_model
response = await bound_model.ainvoke([system_prompt] + state["messages"], config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/context-agent-il7asoJj-py3.11/lib/python3.11/site-packages/langchain_core/language_models/chat_models.py", line 417, in ainvoke
llm_result = await self.agenerate_prompt(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/context-agent-il7asoJj-py3.11/lib/python3.11/site-packages/langchain_core/language_models/chat_models.py", line 1036, in agenerate_prompt
return await self.agenerate(
^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/context-agent-il7asoJj-py3.11/lib/python3.11/site-packages/langchain_core/language_models/chat_models.py", line 994, in agenerate
raise exceptions[0]
File "/root/.cache/pypoetry/virtualenvs/context-agent-il7asoJj-py3.11/lib/python3.11/site-packages/langchain_core/language_models/chat_models.py", line 1153, in _agenerate_with_cache
async for chunk in self._astream(messages, stop=stop, **kwargs):
File "/ex_app/lib/nc_model.py", line 368, in _astream
task = await self._schedule_task(task_input, prefer_streaming=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ex_app/lib/nc_model.py", line 210, in _schedule_task
raise Exception("Failed to schedule task")
Exception: Failed to schedule task
During task with name 'agent' and id 'b480648f-e5b8-7d04-cd7b-3e1d0d2d2b77'
Server configuration
Web server: Apache
Database: MariaDB
PHP version: 8.5
Nextcloud version: (see Nextcloud admin page)
35.0.2
List of activated apps
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder
Nextcloud configuration
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder
Browser
Browser name: Firefox/Chrome/Safari/…
Browser version: 124/125/…
Operating system: Windows/Ubuntu/Mac/…
Browser log
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...
- Vorherrschende Sprache
- Python
- Sterne
- 26
- Forks
- 20
- Ø Merge
- 2 T. 9 Std.
- Gemergte PRs (30 T.)
- 4
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus nextcloud/context_agent
-
enhancement priority normal
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
nextcloud/context_agent#270 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
nextcloud/context_agent#242 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Add endpoint to create new CollectivesEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offenenhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
nextcloud/context_agent#240 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
find_person_in_contacts fails with Niquests content argument and cannot serialize vCard AddressOffenbug
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 76/100
nextcloud/context_agent#217 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
flaky integration testsOffenbug priority normal
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 22/100
nextcloud/context_agent#269 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in nextcloud/context_agent
Ähnliche Issues
-
docs: the dev-setup table and AGENTS.md name the reviewed_by guard that CI's Changelog job runsOffenarea: tools documentation good first issue ready for a contributor
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
eyalgolan/statecraft-israel#873 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 5 Tagen
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag