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
Use the `retry behavior arguments <arguments.html#retry-behavior>`_ to automatically retry failed operations. This is especially useful for network operations or services that may be temporarily unavailable:
57
+
58
+
.. code:: python
59
+
60
+
# Retry a network operation up to 3 times
61
+
server.shell(
62
+
name="Download file with retries",
63
+
commands=["wget https://example.com/file.zip"],
64
+
_retries=3,
65
+
_retry_delay=5, # wait 5 seconds between retries
66
+
)
67
+
68
+
# Use custom retry logic for specific error conditions
69
+
defshould_retry_download(output_data):
70
+
# Retry only on temporary network errors, not permanent failures
0 commit comments