mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-14 05:56:40 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user