RetryConfig
class when initializing the client, through the client’s retry_config
parameter.
If a request to the Workflow Endpoint fails, the client will retry the
request with an exponential backoff strategy up to a maximum interval of one minute. The
function keeps retrying until the total elapsed time exceeds max_elapsed_time
*,
which defaults to one hour. However, you can override these defaults, for example as follows:
RetryConfig
settings include:
Setting | Description |
---|---|
strategy | The strategy to use for retries. The only supported value is backoff . |
retry_connection_errors | True to retry on connection errors. |
BackoffStrategy.initial_interval | After the first error, wait the specified number of milliseconds before retrying. |
BackoffStrategy.max_interval | The maximum wait time, specified in milliseconds between retries. |
BackoffStrategy.exponent | After each retry, increase the wait time exponentially by the specified factor. |
BackoffStrategy.max_elapsed_time | Stop retrying after the specified number of milliseconds. |