Skip to content

Commit

Permalink
add explanation for retry policy example in node-retries notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaZelenskis committed Jan 8, 2025
1 parent 160ee8c commit bdf965a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/docs/how-tos/node-retries.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,13 @@
"final_state = app.invoke({\"counter\": 0, \"result\": \"\"})\n",
"print(final_state)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"In this example, we define a retry policy that maps `ValueError` to the `increment_counter` function. When a `ValueError` occurs, `increment_counter` is called with the current state and the exception before the retry attempt. "
]
}
],
"metadata": {
Expand Down

0 comments on commit bdf965a

Please sign in to comment.