Skip to content

Implement more retries on timeout errors #5

@drh-stanford

Description

@drh-stanford

Currently, GeoMonitor retries twice on Faraday connection errors, like Faraday::Timeout. We may want to bump up the retries and backoff, and/or the timeout options.

See

conn = Faraday.new(url: url)
begin
conn.get do |request|
request.params = request_params
request.options.timeout = 10
request.options.open_timeout = 10
end

and

http://www.rubydoc.info/github/lostisland/faraday/Faraday/Request/Retry

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions