Task and Thread Actions
Task actions provide features for running and interacting with asynchronous tasks managed by the XINA Run application or AWS Lambda platform.
Task Actions
RUN
CONCLUDE
Explicitly conclude an asynchronous task.
CANCEL
Cancel one or more asynchronous tasks.
Example
{
"action" : "cancel",
"tasks" : [ <task ID>, ... ]
}
CLEAN
Permanently delete one or more asynchronous task records and any associated files.
Only concluded tasks may be cleaned. If "ignore"
is false
, and any specified tasks have not concluded, an error will be thrown and no changes will occur. If "ignore"
is true
, all concluded specified tasks will be cleaned, and any non-concluded tasks will be ignored.
Example
{
"action" : "clean",
"tasks" : [ <task ID>, ... ],
["ignore"] : <boolean, default false>]
}
DESTROY
Cancel and clean one or more asynchronous tasks.