Skip to content

Add retry resilience to API calls#34

Open
salmanfarisvp wants to merge 2 commits intomasterfrom
retry-on-api-call-v2
Open

Add retry resilience to API calls#34
salmanfarisvp wants to merge 2 commits intomasterfrom
retry-on-api-call-v2

Conversation

@salmanfarisvp
Copy link
Copy Markdown
Collaborator

@salmanfarisvp salmanfarisvp commented Apr 30, 2026

Add @retry(requests.HTTPError, tries=3, delay=5) to all API calls where retrying is safe:

  • create_qc_playlist() — the direct fix for the intermittent 401
  • get_ten_random_assets(), get_qc_playlist_ids(), get_all_screens_label_id() — read-only GET calls, always safe to retry
  • delete_playlist() — idempotent DELETE, safe to retry

POST calls that could create duplicates (add_asset_to_playlist, assign_playlist_to_all_screens) are intentionally left without retry.

Test plan

  • Job still exits green on a clean run

@salmanfarisvp salmanfarisvp added the enhancement New feature or request label Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant