requeueTask()
Overview
public void function requeueTask(
required string taskId
, required date nextAttemptDate
, any error
, numeric attemptCount = 1
)
Requeues a task for execution
Arguments
Name | Type | Required | Description |
---|---|---|---|
taskId | string | Yes | ID of the task to re-queue |
nextAttemptDate | date | Yes | Date of next attempt |
error | any | No | Error that prompted requeue (see failtask()) |
attemptCount | numeric | No (default=1) | Number of attempts made so far |