Class UserTaskCancellation

java.lang.Object
dev.frostlake.task.UserTaskCancellation

public final class UserTaskCancellation extends Object
The one implementation of SYSTEM$USER_TASK_CANCEL_ONGOING_EXECUTIONS('task_name'), shared by the three surfaces that can reach it: the registered table function, and the two expression paths (SELECT SYSTEM$…() and SET v = SYSTEM$…()).

It cancels executions, not the task — a started task is still started afterwards. The name is echoed into the message exactly as it was passed while the lookup ignores case, and an unknown name raises rather than answering with a status row.

  • Method Details

    • cancel

      public static String cancel(Catalog catalog, TaskScheduler scheduler, String taskName)
      The status line for cancelling taskName's in-flight runs. scheduler may be null where one was never wired up, which reads as nothing being in flight.