requeueTask()

Overview

public void function requeueTask(
      required string  taskId         
    , required date    nextAttemptDate
    ,          any     error          
    ,          numeric attemptCount    = 1
)

Requeues a task for execution

Arguments

NameTypeRequiredDescription
taskIdstringYesID of the task to re-queue
nextAttemptDatedateYesDate of next attempt
erroranyNoError that prompted requeue (see failtask())
attemptCountnumericNo (default=1)Number of attempts made so far