WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center

ContinuousTask [expr]

represents a task in which expr is continuously reevaluated.

ContinuousTask [expr,end]

represents a task in which expr is continuously reevaluated until the time specified by end.

ContinuousTask [expr,tspan]

represents a task in which expr is continuously reevaluated over the time span tspan.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
See Also
Related Guides
History
Cite this Page

ContinuousTask [expr]

represents a task in which expr is continuously reevaluated.

ContinuousTask [expr,end]

represents a task in which expr is continuously reevaluated until the time specified by end.

ContinuousTask [expr,tspan]

represents a task in which expr is continuously reevaluated over the time span tspan.

Details and Options

  • CloudSubmit [ContinuousTask[expr]] submits expr for continuous reevaluation in the cloud, starting immediately.
  • Unless they contain blocking functions or Pause specifications, continuous tasks will typically make use of all available processor resources.
  • ContinuousTask is intended primarily for private cloud installations, not the public Wolfram Cloud.
  • If the evaluation of expr leads to abnormal termination or yields $Failed or a Failure object, a series of restarts will be attempted after progressively longer time intervals.
  • Continuous tasks can be controlled using functions like TaskSuspend and TaskResume .
  • The following options can be given:
  • NotificationFunction Automatic how to provide notifications
    RestartInterval Automatic how long to wait before restarting after failure
    TimeZone Automatic time zone for time specifications
  • In ContinuousTask [expr,end], end can be a DateObject or any other date and time specifier.
  • In ContinuousTask [expr,tspan], tspan can be any Quantity object representing a time span.

Examples

Basic Examples  (2)

Deploy a continuous task, requesting notifications for all discrete runs:

Delete the task:

Prepare a cloud object containing a counter:

Update the counter from a continuous task:

Verify the counter has been updated:

Pause the task:

The counter is no longer updating:

Delete the counter and task:

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

Text

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

CMS

Wolfram Language. 2015. "ContinuousTask." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/ContinuousTask.html.

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2025_continuoustask, organization={Wolfram Research}, title={ContinuousTask}, year={2017}, url={https://reference.wolfram.com/language/ref/ContinuousTask.html}, note=[Accessed: 05-December-2025]}

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /