Failed to schedule task
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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) ...
- 主要语言
- Python
- 星标
- 26
- 派生
- 20
- 平均合并
- 2 天 9 小时
- 30 天内合并 PR
- 4
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nextcloud/context_agent 的其他 Issue
-
enhancement priority normal
难度 2/5 1-3 小时 新手友好度 62/100
nextcloud/context_agent#270 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
nextcloud/context_agent#242 · 1 条评论 ·
维护者通常 1 天内回复
-
Add endpoint to create new Collectives可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭enhancement
难度 2/5 1-3 小时 新手友好度 70/100
nextcloud/context_agent#240 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 半天 新手友好度 76/100
nextcloud/context_agent#217 · 3 条评论 ·
维护者通常 1 天内回复
-
bug priority normal
难度 4/5 3-5 天 新手友好度 22/100
nextcloud/context_agent#269 ·
维护者通常 1 天内回复
查看 nextcloud/context_agent 的全部 Issue
相似的 Issue
-
`lvm_compact` has no self-hosted twin, and `docs/158` §5 says every language-face component must未关闭bug sev-3 vm
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 82/100
sierra-research/tau2-bench#635 ·
维护者通常 1 天内回复
-
The add-ssm-model skill requires a Cython simulator; the contributing guide allows Python ones可能已有人在做 @fmuia 今天认领。 未关闭documentation skill
难度 2/5 1-3 小时 新手友好度 83/100
lnccbrown/ssm-simulators#406 ·
维护者通常 4 天内回复
-
难度 1/5 1 小时以内 新手友好度 95/100
btclib-org/btclib-ecc#309 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
autowarefoundation/autoware_carla_scenario#281 ·
维护者通常 1 天内回复