Skip to content
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

Add up to max retries for 404 response #159

Merged
merged 1 commit into from
Jul 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions tap_shopify/streams/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ def shopify_error_handling(fnc):
giveup=is_not_status_code_fn(range(500, 599)),
on_backoff=retry_handler,
max_tries=MAX_RETRIES)
@backoff.on_exception(backoff.expo,
pyactiveresource.connection.ResourceNotFound,
giveup=is_not_status_code_fn([404]),
on_backoff=retry_handler,
max_tries=MAX_RETRIES)
@backoff.on_exception(retry_after_wait_gen,
pyactiveresource.connection.ClientError,
giveup=is_not_status_code_fn([429]),
Expand Down