Python Jira library. Development chat available on https://matrix.to/#/#pycontribs:matrix.org
BSD 2-Clause "Simplified" License
1.92k
stars
859
forks
source link
Add handling of 503 Service Unavailable retries #1713
Closed
gmainguet closed 7 months ago
Hi,
This is a follow up of #925 and associated PR #1364
As mentioned in https://developer.atlassian.com/cloud/jira/platform/rate-limiting/ , retries should not be limited to 429 responses.
503 responses are slightly different but should follow the same retry logic.
This PR aims at implementing Atlassian's pseudo code written in that page while keeping the already existing behaviour for 429s.
Unit tests have been updated accordingly.
Note: As a matter of fact, 503 responses were received from Jira Cloud (08-2023) and the library wasn't able to handle these. Hence this PR.