Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Parametrize retries from the CLI #159

Merged
merged 1 commit into from
Jun 26, 2019

Conversation

rgreinho
Copy link
Member

Types of changes

  • New feature (non-breaking change which adds functionality)
  • Code cleanup / Refactoring
  • Documentation

Description

Adds CLI flags to parametrize the number of attempts and the exponential
backoff multiplier.

Reconfigures the retryer to reraise the last exception instead of
raising RetryError, as well as changing the strategy to use a backoff
multiplier. The wait strategy will now be attempt_number * 3 seconds by
default.

The documentation was updated accordingly.

Checklist:

  • I have updated the documentation accordingly
  • I have written unit tests

Fixes #149
Fixes #151

Adds CLI flags to parametrize the number of attempts and the exponential
backoff multiplier.

Reconfigures the retryer to reraise the last exception instead of
raising `RetryError`, as well as changing the strategy to use a backoff
multiplier. The wait strategy will now be attempt_number * 3 seconds by
default.

The documentation was updated accordingly.

Fixes scrapd#149
Fixes scrapd#151
@rgreinho rgreinho self-assigned this Jun 26, 2019
@rgreinho rgreinho merged commit d08fa27 into scrapd:master Jun 26, 2019
@rgreinho rgreinho deleted the issues/149+151/parametrize-cli branch June 26, 2019 02:10
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.

Do not raise RetryFailure Parametrize retries on the CLI
1 participant