DoCall, DoWait and RetryState have been removed. They have been replaced by
BackoffCalculator. This class exposes a method get_backoff. This method should return either
a float representing the time to wait or None if there should be no more retries/waits.
Python 3.8+ is now required to run opnieuw.
Release highlights:
Remove DoCall, DoWait and RetryState.
Use BackoffCalculator to keep track of the time to wait between retries and refactor
retrying logic accordingly.
Add chaining of previously retried exceptions. opnieuw will now correctly set the
__cause__ attribute of any exception leaving the decorator with a chain of all the
previously retried exceptions.
Python 3.8+ is now required to run opnieuw.
2.0.0
Released 2022-05-18.
Breaking changes:
clock.TestClock was renamed to clock.DummyClock.
Release highlights:
Rename clock.TestClock to clock.DummyClock.
Relint and upgrade the codebase.
Fix a typing issues for retry_async.
Commits
9cef547 Merge #29: Bump to 3.0.0 and update classifiers
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Bumps opnieuw from 1.2.1 to 3.0.0.
Changelog
Sourced from opnieuw's changelog.
Commits
9cef547
Merge #29: Bump to3.0.0
and update classifiers1da19cf
Bump version to3.0.0
38d94d2
Add more Trove classifiers460bf28
Take control of randomness during testsd410522
Merge #27: Refactor code slightly and add a changelogb09ccf7
Add changelog for3.8+
bumpbc3a140
Refactor retries to be more explicit about raising from7b8abb8
MakePython
3.8
requiredbd0e7ca
Merge #25: Add exception chaining5dcdab6
Add CHANGELOGYou can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show