Package dev.frostlake.functions.table
Class UserTaskCancelFunction
java.lang.Object
dev.frostlake.functions.TableFunction
dev.frostlake.functions.table.UserTaskCancelFunction
SYSTEM$USER_TASK_CANCEL_ONGOING_EXECUTIONS('task_name') — cancels the runs of a task that
are in flight and returns a one-column status row describing what happened.
It cancels executions, not the task: a started task stays started afterwards. The task name is echoed into the message exactly as it was passed, while the task itself is looked up case-insensitively. An unknown name is an error rather than a status row.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExecute the table function with named argumentsvoidsetTaskScheduler(TaskScheduler taskScheduler) voidvalidateArgs(Map<String, Object> namedArgs) Validate the arguments passed to the functionMethods inherited from class dev.frostlake.functions.TableFunction
execute, getName
-
Constructor Details
-
UserTaskCancelFunction
-
-
Method Details
-
setTaskScheduler
-
validateArgs
Description copied from class:TableFunctionValidate the arguments passed to the function- Specified by:
validateArgsin classTableFunction
-
execute
Description copied from class:TableFunctionExecute the table function with named arguments- Specified by:
executein classTableFunction
-