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

NameTypeRequiredDescription
taskIdstringYesID of the task
forceRetrybooleanNo (default=false)If true, will ignore retry config and automatically queue for retry