Repository navigation
MAAP credential broker: jittered backoff within a 240 s budget, one client, stop on 401 - #62
Merged
Merged
Conversation
…t, one MAAP client across tries, stop at once on HTTP 401 Was 5 tries 10 s apart, with a new MAAP() (itself an API call) for each. Now pauses 10, 20, 40, 60, 60 s, each x uniform(0.5, 1.5), with no pause that would end past 240 s from the first try; the same schedule as ATL1415's workspace_credentials.py. A 401 means MAAP_PGT was rejected and a retry cannot help. No per-try timeout: this may run off the main thread. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follows #61. When several hundred DPS jobs start together the MAAP API stops answering, and five tries 10 s apart, each building a new
MAAP()(itself an API call), still lose jobs._s3fs_from_maapnow:There is no per-try timeout, because this may run off the main thread, where SIGALRM is not available. The schedule matches ATL1415's
workspace_credentials.py(plan_pack_tiles.sh K2–K3).MAAP_BROKER_ATTEMPTS/MAAP_BROKER_PAUSE_Sare replaced byMAAP_BROKER_PAUSES_S,MAAP_BROKER_JITTER,MAAP_BROKER_BUDGET_S; nothing else referenced them.Tests:
tests/test_maap_broker.py16 passed (5 new: jitter, budget, 401, client reuse, rebuild after a failed build); full suite 323 passed, 3 skipped.🤖 Generated with Claude Code