-
Notifications
You must be signed in to change notification settings - Fork 19
Add request retry mechanism #143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
f5926ca
added backoff to requests
axshani 990ada9
remove prints
axshani d75b9f0
retries default is 1 now
axshani b365eb6
Merge branch 'master' into retry-requests
axshani c5a4b13
retries default is 0 now
axshani ffc64ec
changed init method, added retries param
axshani 2aa8d86
remove print
axshani 4826a7a
merge with master
axshani 3a820cd
split to functions according to code
axshani 7cd754e
remove MAX_DURATION
axshani 20ef058
Merge branch 'master' into retry-requests
axshani eea9b94
add uuid
axshani 6d000d4
pr comment
axshani f3a7344
- idempotency_key_is_present
axshani 2362202
update README.md
axshani 6028c64
typo and merge with master
axshani c1a69d5
update README.md
axshani File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
split to functions according to code
and added idempotency_key_is_not_present check
- Loading branch information
commit 3a820cd11496c30662013474c4417d6f0c2f7da0
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| import os | ||
| import unittest | ||
| import uuid | ||
| from datetime import timedelta | ||
| from unit import Unit | ||
| from unit.models.application import * | ||
|
|
@@ -20,7 +20,8 @@ def create_individual_application(): | |
| Address("1600 Pennsylvania Avenue Northwest", "Washington", "CA", "20500", "US"), "[email protected]", | ||
| Phone("1", "2025550108"), | ||
| ssn="000000003", | ||
| device_fingerprints=[device_fingerprint] | ||
| device_fingerprints=[device_fingerprint], | ||
| idempotency_key=uuid.uuid1().__str__() | ||
| ) | ||
|
|
||
| return client.applications.create(request) | ||
|
|
@@ -72,3 +73,4 @@ def test_update_business_application(): | |
| updated = client.applications.update(PatchApplicationRequest(app.data.id, "businessApplication", | ||
| tags={"patch": "test-patch"})) | ||
| assert updated.data.type == "businessApplication" | ||
|
|
||
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
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.
Uh oh!
There was an error while loading. Please reload this page.