mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #5315] [Engine] Exclude queue time from the execution watchdog #5382
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#5382
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/5315
Author: @vvsotnikov
Created: 11/5/2026
Status: 🔄 Open
Base:
main← Head:fix/deepseek-queued-watchdog📝 Commits (1)
867561efix(serve): wait for a free engine slot before sending requests📊 Changes
2 files changed (+408 additions, -20 deletions)
View changed files
📝
serve/server.py(+59 -20)➕
serve/test_ds_admission.py(+349 -0)📄 Description
Queued requests can time out incorrectly, causing the server to stop the engine and abort running requests. This happens with DeepSeek
--parallelbecause the server applies the timeout for running requests before queued requests start.Queued requests now wait in Python until an execution slot is free. The server uses the parallel limit reported by the engine to control how many requests it sends. Queue deadlines and cancellation still apply while requests wait, and the existing timeout applies after the server sends a request.
The regression tests confirmed that queued requests can wait beyond the timeout while running requests continue to produce output. They also confirmed that timeouts still stop the engine when a running request produces no output.
Validation on commit
867561e:serve.test_keepawakeconcerns a short mock request that can finish before the keep-awake thread runs. A controlled test reproduced the same failure on this commit and base9f7d977.--parallel 4andengine_silence_s=5. Four requests each generated 384 tokens, while a fifth returned its first token 16.44 seconds after submission.tools/minimal_server_smoke.pypassed 57 tests and skipped four Windows-specific tests, with only runtime dependencies installed.The CPU tests used unmodified PR source, while the GPU test included separate HTTP compatibility patches.
Run the added regression tests with:
Run the full serving suite with:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.