Skip to content

Set upper bound for dj.data polling and fix intermittent no data errors#1857

Merged
shangyian merged 2 commits intoDataJunction:mainfrom
shangyian:client-retry-data
Mar 12, 2026
Merged

Set upper bound for dj.data polling and fix intermittent no data errors#1857
shangyian merged 2 commits intoDataJunction:mainfrom
shangyian:client-retry-data

Conversation

@shangyian
Copy link
Copy Markdown
Collaborator

Summary

The client was using unbounded exponential backoff when polling for query results (1s to 2s to 4s to ... to 128s+), causing it to appear hung even after the underlying job had finished. The polling interval is now capped at 10 seconds.

Additionally, as a client-side fallback, when a FINISHED response has no results, the client now re-polls up to 3 times (with 1s/2s/4s delays) before raising the exception.

Test Plan

  • PR has an associated issue: #
  • make check passes
  • make test shows 100% unit test coverage

Deployment Plan

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 12, 2026

Deploy Preview for thriving-cassata-78ae72 canceled.

Name Link
🔨 Latest commit 93fb1fd
🔍 Latest deploy log https://app.netlify.com/projects/thriving-cassata-78ae72/deploys/69b281f3803b500007430a35

Add retry to get final set of data after successful polling
@shangyian shangyian marked this pull request as ready for review March 12, 2026 09:07
@shangyian shangyian merged commit 3774c62 into DataJunction:main Mar 12, 2026
17 checks passed
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.

1 participant