TaskAbort

TaskAbort[task]

generates an interrupt to abort the current execution of a task.

Details

  • task can be either a TaskObject or task identifier string for a specific task.
  • TaskAbort works on tasks initiated by CloudSubmit, LocalSubmit and URLSubmit.
  • For a scheduled task, TaskAbort aborts only the currently executing instance of the task and does not affect subsequent scheduled instances.
  • TaskAbort[task] does nothing if task does not correspond to a currently executing task.
  • TaskAbort[task] initiates an abort, then returns immediately, giving the TaskObject[] of the task.
  • TaskAbort has attribute Listable.

Examples

Basic Examples  (1)

Deploy a task with no schedule:

Attempt an abort of a task that is not running:

Check the task status:

Delete the task:

Wolfram Research (2017), TaskAbort, Wolfram Language function, https://reference.wolfram.com/language/ref/TaskAbort.html.

Text

Wolfram Research (2017), TaskAbort, Wolfram Language function, https://reference.wolfram.com/language/ref/TaskAbort.html.

CMS

Wolfram Language. 2017. "TaskAbort." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TaskAbort.html.

APA

Wolfram Language. (2017). TaskAbort. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TaskAbort.html

BibTeX

@misc{reference.wolfram_2024_taskabort, author="Wolfram Research", title="{TaskAbort}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/TaskAbort.html}", note=[Accessed: 14-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_taskabort, organization={Wolfram Research}, title={TaskAbort}, year={2017}, url={https://reference.wolfram.com/language/ref/TaskAbort.html}, note=[Accessed: 14-December-2024 ]}