Tasks[type]
gives a list of TaskObject expressions representing currently submitted tasks of given type.
Tasks
Tasks[type]
gives a list of TaskObject expressions representing currently submitted tasks of given type.
Details
- Tasks are submitted by functions such as SessionSubmit, LocalSubmit and CloudSubmit.
- Possible settings for type include:
-
"Cloud" cloud tasks created by CloudSubmit "Local" local tasks created by SessionSubmit or LocalSubmit All all tasks - Tasks[] is effectively the same as Tasks["Local"]
Examples
open all close allBasic Examples (3)
Display a list of currently running tasks:
Tasks[All]Create a task running locally:
obj = SessionSubmit[ScheduledTask[1, {1, 100}]];Tasks["Local"]TaskRemove[obj]Create a task running locally:
SessionSubmit[ScheduledTask[1, {1, 100}]];Create a task running on a remote kernel:
LocalSubmit[Pause[100]];Tasks["Local"]TaskRemove[Tasks["Local"]]Scope (1)
Create a cloud task to run once per hour for a total of 3 times:
CloudSubmit[ScheduledTask[SendMail["Task executed on " <> DateString[]], {"Hourly", 3}]]Display the cloud task and the corresponding tracking local task:
Tasks[All]Tasks["Cloud"]Display the tracking local task:
Tasks["Local"]Removing the tracking task will remove the cloud task as well:
TaskRemove[Tasks[]]Check that tasks were removed:
Tasks[All]Related Guides
Text
Wolfram Research (2017), Tasks, Wolfram Language function, https://reference.wolfram.com/language/ref/Tasks.html (updated 2020).
CMS
Wolfram Language. 2017. "Tasks." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/Tasks.html.
APA
Wolfram Language. (2017). Tasks. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Tasks.html
BibTeX
@misc{reference.wolfram_2026_tasks, author="Wolfram Research", title="{Tasks}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/Tasks.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_tasks, organization={Wolfram Research}, title={Tasks}, year={2020}, url={https://reference.wolfram.com/language/ref/Tasks.html}, note=[Accessed: 13-June-2026]}