failTask()

Overview

public void function failTask(
      required string  taskId    
    ,          struct  error     
    ,          boolean forceRetry = false
)

Marks a task as failed

Arguments

NameTypeRequiredDescription
taskIdstringYesID of the task to mark as failed
errorstructNoError that prompted task failure
forceRetrybooleanNo (default=false)If true, will ignore retry config and automatically queue for retry