TaskAbort
✖
TaskAbort
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)Summary of the most common use cases
Deploy a task with no schedule:
In[1]:=1

✖
https://wolfram.com/xid/0rszbqp8i-1clgdc
Out[1]=1

Attempt an abort of a task that is not running:
In[2]:=2

✖
https://wolfram.com/xid/0rszbqp8i-5mb0i6
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0rszbqp8i-sqg4co
Out[3]=3

In[4]:=4

✖
https://wolfram.com/xid/0rszbqp8i-3plbfx
Out[4]=4

Wolfram Research (2017), TaskAbort, Wolfram Language function, https://reference.wolfram.com/language/ref/TaskAbort.html.
✖
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.
✖
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.
✖
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
✖
Wolfram Language. (2017). TaskAbort. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TaskAbort.html
BibTeX
✖
@misc{reference.wolfram_2025_taskabort, author="Wolfram Research", title="{TaskAbort}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/TaskAbort.html}", note=[Accessed: 27-May-2025
]}
BibLaTeX
✖
@online{reference.wolfram_2025_taskabort, organization={Wolfram Research}, title={TaskAbort}, year={2017}, url={https://reference.wolfram.com/language/ref/TaskAbort.html}, note=[Accessed: 27-May-2025
]}