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 b474e87
Browse filesBrowse the repository at this point in the historyBrowse files
- queue.ts: retryAfterSeconds (429/503, whole seconds 1-300, else ignored) and
retryWaitSeconds (at least Retry-After, jittered up to half again; without it
exactly the old backoff). flushOnce uses it; a busy 503 logs 'the server is busy'.
- settings.ts sinkSettings: backend.ingest (same URL check) takes the events at
<ingest>/v1/ingest with the same key; a bad value falls back to <url>/v1/ingest
with an error the server warns about once. A Basin analytics sink still wins.
- kernel.ts backend.ingest type, version 0.7.2, README, Lune tests.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "@typetorch/framework",
3
-
"version": "0.7.1",
3
+
"version": "0.7.2",
4
4
"description": "TypeTorch framework for roblox-ts: hot-swappable modules (dependency injection, lifecycle, troves), guarded networking, hot assets and the in-game dev menu. Ships inside every TypeTorch artifact.",
Copy file name to clipboardExpand all lines: scripts/test-analytics-server.luau
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -890,6 +890,29 @@ local recovered = core1:stats()
890
890
check("recovered: the streak is over, the history stays", recovered.failures==0andrecovered.failed>=2andrecovered.lastError~=nilandrecovered.lastOkAt>=recovered.lastErrorAt)
891
891
check("recovered: nothing left to fix", recovered.retryIn==nilandrecovered.reason==nilandrecovered.fix==nil)
892
892
893
+
-- Framework 0.7.2 (plans/35 D): the backend's "busy" 503 with Retry-After: the rows stay, the wait is at least that long.
check("busy 503: no retry before Retry-After", #requests==requestsBeforeBusy+1, #requests)
911
+
core1.backoffUntil=0-- (skip the rest of the wait)
912
+
core1:flushSoon()
913
+
task.wait(1.5)
914
+
check("busy 503: sent after the wait", #requests==requestsBeforeBusy+2and#rowsNamed(store().events.rows, "custom", "busy_probe") ==0andstore().failures==0, #requests)
check(`ingest: bad value {tostring(bad)} falls back to <url>/v1/ingest with one error`, parsed.settings~=nilandparsed.settings.events=="https://b.example.com/v1/ingest"and#parsed.errors==1andstring.find(parsed.errors[1], "backend.ingest", 1, true) ~=nil, parsed.errors[1])
0 commit comments