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
Name | Type | Required | Description |
---|---|---|---|
taskKey | string | Yes | The 'key' of the task (this is the Tasks.cfc handler action name) |
args | struct | No | An optional struct of variables that will be passed to the task handler action |