Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Swap out pester for Retriable; Retry github errors #75

Closed
wants to merge 5 commits into from

Conversation

apurvis
Copy link

@apurvis apurvis commented Nov 15, 2017

No description provided.

delay_interval: 30.seconds,
max_attempts: 10,
on_retry: Pester::Behaviors::Sleep::Constant,
reraise_error_classes: [Aws::S3::Errors::NoSuchKey, Aws::S3::Errors::NoSuchBucket]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm what about these reraise classes?

Copy link
Author

@apurvis apurvis Nov 15, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's no blacklist in Retriable, so you'd either have to explicitly specify via whitelist what to retry, or i guess possibly wait for this PR: kamui/retriable#55 that would support an arbitrary Proc evaluation which could do the black/whitelisting.

what's the reason for these exceptions not being retried? is it still even a valid concern?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think these are all unrecoverable errors. ie, retrying isn't going to help if you are missing keys or your bucket config is wrong

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh i think this got put in because it was annoying waiting for it to retry when you have the AWS keys misconfigured. i'll put in a tweak to replicate this behavior.

@@ -43,7 +43,7 @@ def self.send_request(verb, url, params={})
request.content_type = 'application/json'
end

http.request(request)
Retriable.retriable { http.request(request) }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a retriable without context? what is the default behavior?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dollschasingmen
Copy link
Contributor

Closing due to inactivity

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants