24.2.0 #58
hynek
announced in
Announcements
24.2.0
#58
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Highlights
This release adds two handy classes for the cases when you just want to retry a single function/method call:
Both
rc
andbound_rc
run:Unfortunately, it's not possible to implement this behavior transparently for async, so you have to use
AsyncRetryingCaller
for async callables.Full changelog below!
Special Thanks
This release would not be possible without my generous sponsors! Thank you to all of you making sustainable maintenance possible! If you would like to join them, go to https://github.com/sponsors/hynek and check out the sweet perks!
Above and Beyond
Variomedia AG (@variomedia), Tidelift (@tidelift), FilePreviews (@filepreviews), Daniel Fortunov (@asqui), Kevin P. Fleming (@kpfleming), and Sören Weber (@SoerenWeber).
Maintenance Sustainers
Adam Hill (@adamghill), Dan Groshev (@si14), Magnus Watn (@magnuswatn), David Cramer (@dcramer), Moving Content AG (@moving-content), ProteinQure (@ProteinQure), Jesse Snyder (@jessesnyder), Rivo Laks (@rivol), Ionel Cristian Mărieș (@ionelmc), The Westervelt Company (@westerveltco), Philippe Galvan (@PhilippeGalvan), Birk Jernström (@birkjernstrom), Tim Schilling (@tim-schilling), Chris Withers (@cjw296), Christopher Dignam (@chdsbd), Stefan Hagen (@sthagen), Sławomir Ehlert (@slafs), Mostafa Khalil (@khadrawy), Filip Mularczyk (@mukiblejlok), Mike Fiedler (@miketheman), and Michel Vittória (@michelvittoria).
Not to forget 5 more amazing humans who chose to be generous but anonymous!
Full Changelog
Added
stamina.RetryingCaller
andstamina.AsyncRetryingCaller
that allow even easier retries of single callables:stamina.RetryingCaller(attempts=5).on(ValueError)(do_something, "foo", bar=42)
andstamina.RetryingCaller(attempts=5)(ValueError, do_something, "foo", bar=42)
will calldo_something("foo", bar=42)
and retry onValueError
up to 5 times.stamina.RetryingCaller
andstamina.AsyncRetryingCaller
take the same arguments asstamina.retry()
, except foron
that can be bound separately.#56 #57
This discussion was created from the release 24.2.0.
Beta Was this translation helpful? Give feedback.
All reactions