Skip to content

Commit eba74f4

Browse files
committed
Set Subway per-upstream request_timeout_seconds to 90s
Subway's default per-upstream request timeout is 30s. With three Acala public RPC endpoints, heavy storage queries that take longer than 30s cause Subway to cycle through all three endpoints (~90s) before any single upstream has a chance to respond, and the test-side waiting client times out. `request_timeout_seconds` was added to `ClientConfig` in AcalaNetwork/subway#203 (Subway v0.1.1+). Setting it to 90 lets a single upstream attempt run long enough to complete those queries instead of being preempted by Subway's own per-endpoint clock. The companion exclusion of Acala tests in `vitest.config.mts` is intentionally left in place; this commit only restores Subway's ability to wait long enough. Lifting the exclusion is a separate verification step.
1 parent 1cae909 commit eba74f4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/subway-template.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ extensions:
77
# the failover ladder on stall/disconnect via its existing rotation
88
# logic, so an initial bias toward array[0] doesn't sacrifice resilience.
99
shuffle_endpoints: false
10+
# Heavy upstream queries (e.g. Acala storage at the pinned block) can take
11+
# longer than Subway's default 30s per-upstream timeout. Without this,
12+
# Subway cycles through the entire endpoint list before any single
13+
# upstream has a chance to respond. Requires Subway >= v0.1.1
14+
# (AcalaNetwork/subway#203).
15+
request_timeout_seconds: 90
1016
event_bus:
1117
substrate_api:
1218
stale_timeout_seconds: 180

0 commit comments

Comments
 (0)