increase status_code check to >= 500 #73
Merged
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.
Pull Request Summary
Description
We have seen customer reports of receiving a 503 response back from Scale while creating tasks. This seems like an error and the task did not successfully create, but actually the task creation was successful (it just took longer than our API gateway's limit or some similar issue).
In the past, this would return a 500 response, but now it also returns 503 so this change will also catch the 503.
How did you test your code?
Which of the following have you done to test your changes? Please describe the tests that you ran to verify your changes.
tests/
for the newly implemented methodstests/
to cover changes made to existing methodsChecklist
Please make sure all items in this checklist have been fulfilled before sending your PR out for review!
_version.py
(unless this PR only updates the documentation).