You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit da7915b
Browse filesBrowse the repository at this point in the historyBrowse files
worker: --http-threads CLI flag for waitress thread pool
waitress.serve()'s default thread pool is 4. Any caller issuing more
concurrent HTTP requests than that (e.g. a DuckDB extension with
SET threads=8 calling process() per scan worker plus setup/teardown
overlap) sees half its parallelism queue on the WSGI pool. Symptom:
waitress emits ``Task queue depth is N`` at INFO when the accept queue
grows past 0.
Add --http-threads to both `main()` (when --http) and `main_http()`,
plumb it through `_run_http` to `waitress.serve(threads=N)`. Default
None preserves waitress's built-in default (no behaviour change for
existing callers); operators size up explicitly when the workload
expects more concurrency than 4.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments