Rate this page:

requestNextAttempt

Copy URL
requestNextAttempt(data: 

Object

,
callback:

Function

):

void

Changes parameters for the current task and request another calling attempt with updated data.This method can change the following fields for the current task: start_at, attempts_left, custom_data, start_execution_time, and end_execution_time. The new values work for all remaining attempts. This method does not change the global call list settings.

Note: if you do not change the attempts_left manually, the call list decreases its value by 1 automatically.

After an unsuccessful calling attempt, this method executes the reportError method automatically.

Refer to the Editable call lists guide to learn more.

Parameters

  • data:

    Object

    Data to update

  • callback:

    Function

    Optional

    Callback function to execute after the request is done

Returns

  • type:

    void