Skip to content

feat(server): default to 1 Tokio worker thread in --dev mode#7

Merged
solisoft merged 1 commit into
mainfrom
task/reduce-to-1-worker-when-running-in-dev-mode
May 12, 2026
Merged

feat(server): default to 1 Tokio worker thread in --dev mode#7
solisoft merged 1 commit into
mainfrom
task/reduce-to-1-worker-when-running-in-dev-mode

Conversation

@solisoft
Copy link
Copy Markdown
Owner

Automated by task-orchestrator. Source: tasks DB row proxy--reduce-to-1-worker-when-running-in-dev-mode.

Adds a `worker_threads` setting to `[server]` in `config.toml` accepting
either `"auto"` or a positive integer. In `--dev` mode the runtime
defaults to a single worker thread when the field is absent, reducing
idle memory and scheduler overhead on developer machines. An explicit
value (including `"auto"`) always overrides the dev default; production
mode keeps Tokio's auto-detect behaviour by default.

Closes reduce-to-1-worker-when-running-in-dev-mode.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@solisoft solisoft merged commit 883ed9d into main May 12, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant