core[patch]: support customization of backoff parameters in with_retries (#30773)

Co-authored-by: Sydney Runkle <54324534+sydney-runkle@users.noreply.github.com>
This commit is contained in:
ccurme
2025-04-10 19:18:36 -04:00
committed by GitHub
parent e981a9810d
commit 8e053ac9d2
3 changed files with 33 additions and 13 deletions

View File

@@ -3883,6 +3883,7 @@ def test_retrying(mocker: MockerFixture) -> None:
runnable.with_retry(
stop_after_attempt=2,
retry_if_exception_type=(ValueError,),
exponential_jitter_params={"initial": 0.1},
).invoke(1)
assert _lambda_mock.call_count == 2 # retried