Skip to content

SUB-2497: Poll durable in-progress runs and retry in-progress 503s - #9

Merged
snlamm merged 1 commit into
mainfrom
doron/sub-2497-durable-in-progress-retries
Nov 25, 2026
Merged

snlamm merged 1 commit into
mainfrom
doron/sub-2497-durable-in-progress-retries

Conversation

@somdoron

Copy link
Copy Markdown
Contributor

In openai-agents-submilli sessions without application tools, a durable execute returning queued or running after the server's wait raised SubmilliError instead of polling the run to completion, and submilli refused to retry 503 idempotency_in_progress responses from older servers.

This change polls durable queued and running executes to completion while preserving execution_id if the run is lost, resets Runs.complete poll backoff after resuming a suspended tool call, and retries 503 idempotency_in_progress on keyed requests.

Refs SUB-2497.

Drive durable queued/running executes to completion in openai-agents-submilli without application tools while keeping execution_id on lost runs, reset poll backoff after resuming suspended calls, and retry 503 idempotency_in_progress from older servers.

Co-authored-by: Antigravity <noreply@google.com>
@somdoron
somdoron requested a review from snlamm November 25, 2026 18:29

@snlamm snlamm 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 — verified sync/async retry and poll-backoff behavior in submilli, durable queued/running completion and execution_id preservation in openai-agents-submilli, and parity with submilli-runtime#461 and submilli-typescript#8. Ready to merge.

@snlamm
snlamm merged commit ace13ac into main Nov 25, 2026
21 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.

2 participants