73ada89a13
Build & push images / images (push) Successful in 3m45s
park-2 (2026-10-24): GET /api/sessions/active ran ~2 s synchronously — PayStation.activeSessions called quote() per open unpaid transient (664 rows), each 3-4 unindexed ledger_events scans by identity — 2234x/day. The frozen event loop made the Dingtian driver's 2 s timer fire before the already-received UDP reply (timers run before poll I/O), so healthy pulses logged "timeout"; the subscription flow then unwound before firing the camera or writing the sessions row, leaving signed entries with no snapshot. Cost grew ~120 ms/day with the operator's open-ticket count. - pay-station: price every list row from the one ledger scan (rows grouped per identity -> #quoteFromRows); tariff resolver built once per request; quote(identity) wraps the same core. validations: sessionValidationsFromRows / liveValidationsFromRows. Test pins list == quote(). - db 0032_hot_path_indexes: ledger_events(identity,index), device_events(category,kind, occurred_at), device_events(kind,occurred_at), snapshots(identity), sessions(state), sessions(subscription_id,state). Additive. - access-dingtian binaryUdp: defer the timeout rejection with setImmediate so a datagram that already arrived wins over an expired timer. - subscription-flow: snapshot fired and session cache written/closed BEFORE the pulse. wiki/concepts/park-2-event-loop-stall.md has the full analysis.
238 lines
4.7 KiB
JSON
238 lines
4.7 KiB
JSON
{
|
|
"version": "7",
|
|
"dialect": "sqlite",
|
|
"entries": [
|
|
{
|
|
"idx": 0,
|
|
"version": "6",
|
|
"when": 1781632874398,
|
|
"tag": "0000_baseline",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 1,
|
|
"version": "6",
|
|
"when": 1781682176094,
|
|
"tag": "0001_neat_slipstream",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 2,
|
|
"version": "6",
|
|
"when": 1781713560438,
|
|
"tag": "0002_panoramic_tiger_shark",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 3,
|
|
"version": "6",
|
|
"when": 1781774228086,
|
|
"tag": "0003_early_hawkeye",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 4,
|
|
"version": "6",
|
|
"when": 1781800000000,
|
|
"tag": "0004_subscriptions_rename",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 5,
|
|
"version": "6",
|
|
"when": 1781884800000,
|
|
"tag": "0005_site_timezone",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 6,
|
|
"version": "6",
|
|
"when": 1781884900000,
|
|
"tag": "0006_site_default_category",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 7,
|
|
"version": "6",
|
|
"when": 1781885000000,
|
|
"tag": "0007_rbac",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 8,
|
|
"version": "6",
|
|
"when": 1781885100000,
|
|
"tag": "0008_user_profile_theme",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 9,
|
|
"version": "6",
|
|
"when": 1781885200000,
|
|
"tag": "0009_app_logs",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 10,
|
|
"version": "6",
|
|
"when": 1781885300000,
|
|
"tag": "0010_subscription_plans",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 11,
|
|
"version": "6",
|
|
"when": 1781885400000,
|
|
"tag": "0011_subscription_plan_v2",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 12,
|
|
"version": "6",
|
|
"when": 1781885500000,
|
|
"tag": "0012_soft_delete",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 13,
|
|
"version": "6",
|
|
"when": 1781885600000,
|
|
"tag": "0013_anpr_entry_toggle",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 14,
|
|
"version": "6",
|
|
"when": 1781885700000,
|
|
"tag": "0014_user_font_scale",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 15,
|
|
"version": "6",
|
|
"when": 1781885800000,
|
|
"tag": "0015_dingtian_qr_reader_driverid",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 16,
|
|
"version": "6",
|
|
"when": 1781885900000,
|
|
"tag": "0016_backup_target_dir",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 17,
|
|
"version": "6",
|
|
"when": 1781886000000,
|
|
"tag": "0017_backup_retention",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 18,
|
|
"version": "6",
|
|
"when": 1781886100000,
|
|
"tag": "0018_drawer_permissions",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 19,
|
|
"version": "6",
|
|
"when": 1781886200000,
|
|
"tag": "0019_operator_session_create",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 20,
|
|
"version": "6",
|
|
"when": 1781886300000,
|
|
"tag": "0020_entry_presence_bypass",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 21,
|
|
"version": "6",
|
|
"when": 1781886400000,
|
|
"tag": "0021_tariff_drafts",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 22,
|
|
"version": "6",
|
|
"when": 1781886500000,
|
|
"tag": "0022_tariff_version_name",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 23,
|
|
"version": "6",
|
|
"when": 1781886600000,
|
|
"tag": "0023_driver_id_escpos",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 24,
|
|
"version": "6",
|
|
"when": 1783948800000,
|
|
"tag": "0024_validation_programs",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 25,
|
|
"version": "6",
|
|
"when": 1788078414270,
|
|
"tag": "0025_backup_last_status",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 26,
|
|
"version": "6",
|
|
"when": 1788596918862,
|
|
"tag": "0026_site_modules",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 27,
|
|
"version": "6",
|
|
"when": 1788599998177,
|
|
"tag": "0027_carwash",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 28,
|
|
"version": "6",
|
|
"when": 1788605000000,
|
|
"tag": "0028_carwash_config",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 29,
|
|
"version": "6",
|
|
"when": 1788690000000,
|
|
"tag": "0029_role_jobs",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 30,
|
|
"version": "6",
|
|
"when": 1788700000000,
|
|
"tag": "0030_carwash_vision",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 31,
|
|
"version": "6",
|
|
"when": 1788710000000,
|
|
"tag": "0031_carwash_review_outbox",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 32,
|
|
"version": "6",
|
|
"when": 1788720000000,
|
|
"tag": "0032_hot_path_indexes",
|
|
"breakpoints": true
|
|
}
|
|
]
|
|
}
|