You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we run out of attempts, it'd be nice to have a final chance to inspect the result of the call before the final reraise or return are done. I think this could be done by having a wrap_func called passing in the attempt
The text was updated successfully, but these errors were encountered:
Just in case someone stumbles across this (like I did), I made a change to tenacity (after seeing #65) that covers this.
fromtenacityimportretry, stop_after_attemptdefinspect_last_attempt(last_attempt):
print(dir(last_attempt))
# do whatever you might like to do here@retry(stop=stop_after_attempt(3), retry_error_callback=inspect_last_attempt)defaw_shucks():
raiseException('aw dang')
If we run out of attempts, it'd be nice to have a final chance to inspect the result of the call before the final
reraise
orreturn
are done. I think this could be done by having awrap_func
called passing in theattempt
The text was updated successfully, but these errors were encountered: