mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#3599
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/1673
Author: @nekomario28
Created: 10/9/2026
Status: ❌ Closed
Base:
main← Head:fix-1619-fifo-heartbeat📝 Commits (2)
5c0a197serve: heartbeat a request that waits for the turn (#1619)f706733serve: wake queued requests without a polling delay📊 Changes
2 files changed (+110 additions, -3 deletions)
View changed files
📝
serve/server.py(+29 -1)📝
serve/test_server.py(+81 -2)📄 Description
Fixes #1619.
Summary
Queued single-turn requests send an immediate heartbeat, then wait with
Lock.acquire(timeout=FIFO_PING_S). The turn can start as soon as the holder releases it, without a polling sleep between requests. Closing a queued generator also returns its queued count.The heartbeat interval remains 10 s by default (
STRATA_FIFO_PING_Soverrides it). Batch requests and status/history cleanup under the held lock are unchanged. No strict FIFO ordering guarantee is added.Thanks to DDK00011 for reproducing the regressions and proposing the timed wait and queued cleanup. The test lock now accepts the real lock's
timeoutargument.Test plan
serve.test_quiet_cancel: 6 failing assertions before the correction; all 5 tests pass afterward.serve/discovery: 596 tests, no failures or errors, 8 skips (Linux, Python 3.14.7).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.