Skip to content

Retry typed persistence pressure in package download creation - #119

Merged
itlezy merged 1 commit into
mainfrom
fix/package-admission-backpressure
Nov 25, 2026
Merged

itlezy merged 1 commit into
mainfrom
fix/package-admission-backpressure

Conversation

@itlezy

@itlezy itlezy commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

Windows ARM64 nightly attempts 2 and 3 both received HTTP 503 with PERSISTENCE_BUSY while creating stopped downloads in the packaged lifecycle test.

Retry only that typed response for the same download request, with bounded backoff and receipts. Keep the first-response 201 requirement, track the exact hash on replay, and retain the existing checks for distinct jobs, concurrency, and delivered bytes.

Refs emulebb/emulebb-rust#367

The Windows ARM64 lifecycle reproducibly receives PERSISTENCE_BUSY while admitting stopped jobs. Retry the identical request with a bound and record each attempt, preserving job identity and byte verification (emulebb-rust#367).
return value


def _create_parallel_job(base_url: str, body: dict, *, file_hash: str, attempts: list[dict]) -> str:
@itlezy
itlezy merged commit 4e35d0c into main Nov 25, 2026
20 checks passed
@itlezy
itlezy deleted the fix/package-admission-backpressure branch November 25, 2026 17:42
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