mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-11 20:27:54 +02:00
docs: Clarify default_retry_on retry behavior for exceptions (#1754)
* docs: Clarify exceptions retried by default_retry_on in retry policy tutorial - Added a remark in the tutorial explaining that the `default_retry_on` function retries on any exception except for the following: - ValueError - TypeError - ArithmeticError - ImportError - LookupError - NameError - SyntaxError - RuntimeError - ReferenceError - StopIteration - StopAsyncIteration - OSError * http status codes --------- Co-authored-by: Itay Etelis <itay.etelis@ibm.com> Co-authored-by: isaac hershenson <ihershenson@hmc.edu>
This commit is contained in:
co-authored by
Itay Etelis
isaac hershenson
parent
babcf10c1c
commit
22c78050dd
@@ -82,6 +82,28 @@
|
||||
"RetryPolicy()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"By default, the `retry_on` parameter uses the `default_retry_on` function, which retries on any exception except for the following:\n",
|
||||
"\n",
|
||||
"* `ValueError`\n",
|
||||
"* `TypeError`\n",
|
||||
"* `ArithmeticError`\n",
|
||||
"* `ImportError`\n",
|
||||
"* `LookupError`\n",
|
||||
"* `NameError`\n",
|
||||
"* `SyntaxError`\n",
|
||||
"* `RuntimeError`\n",
|
||||
"* `ReferenceError`\n",
|
||||
"* `StopIteration`\n",
|
||||
"* `StopAsyncIteration`\n",
|
||||
"* `OSError`\n",
|
||||
"\n",
|
||||
"In addition, for exceptions from popular http request libraries such as `requests` and `httpx` it only retries on 5xx status codes."
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
|
||||
Reference in New Issue
Block a user