OptionalmaxThe maximum number of retries to attempt after the initial operation fails. Default is 1 retry.
OptionalonCallback function that will be invoked on each retry attempt. Receives the error that caused the retry and the number of retries remaining.
The error that caused the operation to fail
The number of retries remaining
Options for configuring retry behavior.