web_set_max_retries

Sets the maximum number of retries of an Action step.

C Language

int web_set_max_retries( const char *MaxRetries );

Java Language

int object.set_max_retries( String MaxRetries );
Argument
Description
object
An expression evaluating to an object of type WebApi. Usually web for Java. See also Function and Constant Prefixes.
MaxRetries
A pointer to the null-terminated string indicating the maximum number of retries. Enter 0 for no retries.

Return Values

This function returns LR_PASS (0) on success, and LR_FAIL (1) on failure.

Parameterization

The following argument(s) can be parameterized using standard parameterization: MaxRetries

General Information

The web_set_max_retries function sets the maximum number of retries for a Action Functions. When an error occurs, retry is attempted for HTTP response statuses 500-599, and for network API errors (HttpSendRequest and so forth). Retry is not attempted for timeouts or function argument errors.

This function is supported for all web scripts.