getNextAttemptInfo()
Overview
public struct function getNextAttemptInfo(
required string taskId
, boolean forceRetry = false
)
Returns a struct with information about the next retry attempt for a task. Keys are: "nextAttemptDate", "totalAttempts". Returns an empty struct if task cannot be retried.
Arguments
Name | Type | Required | Description |
---|---|---|---|
taskId | string | Yes | ID of the task |
forceRetry | boolean | No (default=false) | If true, will ignore retry config and automatically queue for retry |