Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Failed to schedule task

Offen
#271 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

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
Issue-Typ
Bug
Klarheit
Muss geklärt werden
Aktivitätsstatus
Aktiv
Tech-Stack
python
Bereich
ai

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

bug
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
  1. 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

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus nextcloud/context_agent

Alle Issues in nextcloud/context_agent

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.