failTask()
Overview
public void function failTask(
required string taskId
, struct error
, boolean forceRetry = false
)
Marks a task as failed
Arguments
Name | Type | Required | Description |
---|---|---|---|
taskId | string | Yes | ID of the task to mark as failed |
error | struct | No | Error that prompted task failure |
forceRetry | boolean | No (default=false) | If true, will ignore retry config and automatically queue for retry |