Skip to content

Tighten dsbx action poll: 500ms initial wait, then 200ms until 2s, then 500ms. - #32769

Merged
Fraggle merged 1 commit into
mainfrom
sflory/dsbx-action-poll-cadence
Sep 21, 2026
Merged

Fraggle merged 1 commit into
mainfrom
sflory/dsbx-action-poll-cadence

Conversation

@Fraggle

@Fraggle Fraggle commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Description

DustApiClient::poll_action_result now waits 500 ms after a 202 response before the first status request, polls every 200 ms for the first two seconds, then returns to 500 ms polling for longer-running actions. This removes the guaranteed premature GET while improving completion latency for warm tools without changing the 10-minute cap.

Tests

Added unit coverage for the fast-to-slow polling boundary in pending_poll_interval.

Risk

Low risk. The change only affects action-status polling cadence; the existing timeout and network-error limits remain unchanged. Rollback is safe by reverting the dust-sandbox change.

Deploy Plan

Deploy dust-sandbox. No SQL migrations or infrastructure changes are required.

@vercel

vercel Bot commented Sep 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated
playground Ignored Ignored Preview Sep 21, 2026 12:55pm UTC
storybook Ignored Ignored Preview Sep 21, 2026 12:55pm UTC

Request Review

@Fraggle
Fraggle force-pushed the sflory/add-timings-informations-for branch from 363e0ff to dad575e Compare September 21, 2026 08:40
@Fraggle
Fraggle force-pushed the sflory/dsbx-action-poll-cadence branch from 7e67049 to f5f66ad Compare September 21, 2026 08:40
@Fraggle
Fraggle force-pushed the sflory/add-timings-informations-for branch from dad575e to f1af963 Compare September 21, 2026 12:53
@Fraggle
Fraggle force-pushed the sflory/dsbx-action-poll-cadence branch from f5f66ad to 86f6cba Compare September 21, 2026 12:54
Base automatically changed from sflory/add-timings-informations-for to main September 21, 2026 12:54
…en 500ms.

Skips the useless immediate GET after 202 and densifies polling while warm tools usually finish.
@Fraggle
Fraggle force-pushed the sflory/dsbx-action-poll-cadence branch from 86f6cba to 433b9c7 Compare September 21, 2026 12:54
@Fraggle
Fraggle merged commit 2a6b9f5 into main Sep 21, 2026
44 checks passed
@Fraggle
Fraggle deleted the sflory/dsbx-action-poll-cadence branch September 21, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants