Module: TwitterRetry
- Extended by:
- Retryable
- Defined in:
- lib/twitter_retry.rb,
lib/twitter_retry/config.rb,
lib/twitter_retry/version.rb,
lib/twitter_retry/retryable.rb
Defined Under Namespace
Modules: Retryable Classes: BaseError, CannotRetryableError, Config, RetryOverError, SuspendedError
Constant Summary collapse
- DEFAULT_RETRYABLE_ERRORS =
[ [Twitter::Error::ServiceUnavailable, "Over capacity"], [Twitter::Error::InternalServerError, "Internal error"], [Twitter::Error, "getaddrinfo: Name or service not known"], ]
- DEFAULT_IGNORABLE_ERRORS =
[ [Twitter::Error::Forbidden, "Status is a duplicate."], [Twitter::Error::Forbidden, "User is over daily status update limit."], [Twitter::Error::Forbidden, "This request looks like it might be automated."], ]
- VERSION =
"0.2.2"
Class Method Summary collapse
Methods included from Retryable
ignorable?, retryable?, suspended?, with_handing
Class Method Details
.config ⇒ TwitterRetry::Config
10 11 12 |
# File 'lib/twitter_retry.rb', line 10 def self.config @config ||= Config.new end |
.configure {|| ... } ⇒ Object
15 16 17 |
# File 'lib/twitter_retry.rb', line 15 def self.configure yield config if block_given? end |