mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-08-17 04:53:56 +00:00
The worker processes all queued tasks up to a fixed concurrency of 5, which overloads single-GPU / local-LLM setups and triggers rate limits (#893). The surreal-commands worker already accepts --max-tasks; wire it to a new OPEN_NOTEBOOK_WORKER_MAX_TASKS env var (default 5, set 1 for sequential) at every launch point. - Makefile (worker-start, start-all): --max-tasks "$${VAR:-5}" (Make-escaped) - dev-init.sh: POSIX ${VAR:-5} default expansion - supervisord.conf: wrap in sh -c so the shell expands the var (command= does not run through a shell) - docker-compose.yml: commented environment example - .env.example + environment-reference.md: document it, incl. the launch-time sourcing behavior Also fixes a phantom doc entry: SURREAL_COMMANDS_MAX_TASKS was documented but is not read anywhere (the worker's --max-tasks Typer option has no envvar); replaced with the real OPEN_NOTEBOOK_WORKER_MAX_TASKS. Closes #893 |
||
|---|---|---|
| .. | ||
| advanced.md | ||
| ai-providers.md | ||
| database.md | ||
| environment-reference.md | ||
| index.md | ||
| local-stt.md | ||
| local-tts.md | ||
| mcp-integration.md | ||
| ollama.md | ||
| openai-compatible.md | ||
| reverse-proxy.md | ||
| security.md | ||