runTask()

Overview

public void function runTask(
      required string taskKey
    ,          struct args   
)

Runs the specified task. e.g.

taskmanagerService.runTask(
      taskKey = "resizeImages"
    , args    = { derivative="thumbnail" }
);

See Task manager for more detail.

Arguments

NameTypeRequiredDescription
taskKeystringYesThe 'key' of the task (this is the Tasks.cfc handler action name)
argsstructNoAn optional struct of variables that will be passed to the task handler action