Skip to content

keep estimate stream alive while DAS is silent - #332

Merged
utas-raymondng merged 1 commit into
mainfrom
bugfix/8934-handle-das-504
Aug 24, 2026
Merged

keep estimate stream alive while DAS is silent#332
utas-raymondng merged 1 commit into
mainfrom
bugfix/8934-handle-das-504

Conversation

@NekoLyn

@NekoLyn NekoLyn commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Problem

The cloud-optimised estimate stream relied on data-access-service
heartbeats to keep the client's connection alive. A DAS that fails
before opening its stream never heartbeats, so the connection goes
quiet for the 30-60s the failure takes and CloudFront drops it before
estimate-failed is written.

Changes

  • The estimate stream runs its own keep-alive ticker (5s). A tick is
    skipped when an event was already sent in the last half interval, so
    work that reports its own progress is not doubled up on.
  • probeClient writes an SSE comment instead of a keep-alive event.
    DAS heartbeats still detect a client that has gone and unwind the
    read, but no longer reach the browser as a second keep-alive.
  • Pre-stream failures now report the FastAPI detail, drop gateway
    HTML error pages, and truncate anything long.

@utas-raymondng utas-raymondng left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@utas-raymondng
utas-raymondng merged commit a0df8fa into main Aug 24, 2026
4 checks passed
@utas-raymondng
utas-raymondng deleted the bugfix/8934-handle-das-504 branch August 24, 2026 23:15
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