requestNextAttemptAsync
requestNextAttemptAsync(data: Object
): Promise<HttpRequestResult>
Changes parameters for the current task and request another calling attempt with updated data asynchronously.This method can change the following fields for the current task: start_at
, attempts_left
, custom_data
,
start_execution_time
, end_execution_time
and next_attempt_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
Returns
type:
Promise<HttpRequestResult>