NotificationFunction

NotificationFunction

is an option that specifies how notifications should be sent from background tasks.

Details

  • Possible settings for NotificationFunction include:
  • Nonesend no notifications
    Automaticsend email notification to the owner on failure
    Allsend email notification to the owner on success or failure
    "chan"Automaticnotify the owner on failure through the specified channel
    "chan"Allnotify the owner on success or failure through the channel
    {user1,user2,}send email on failure to the specified users
    {{user1,}cond,}send email to the specified users on condition cond
    fapply an arbitrary function
  • With NotificationFunction->f, the function f is applied to an association containing the following elements:
  • "Recipients"users to be notified
    "Result"result from the task
    "TaskLink"link to the task object
    "TaskCloudObject"cloud object for the task
    "TaskFilename"file name for the task (None if unnamed)
    "LogLink"link to the log from running the task
    "StartTime"start time of the task
    "EndTime"end time of the task
    "Timing"CPU time used for the task
    "AbsoluteTiming"wall-clock time used for the task
    "NextRunTime"time of the next scheduled run
    "RemainingRuns"number of remaining runs specified

Examples

Basic Examples  (1)

Deploy a task that notifies multiple parties on any outcome:

Trigger the task to run asynchronously:

Redeploy the task to notify on failure only:

Trigger the task to run again:

Redeploy the task with a custom notification function:

Trigger the task to run again:

Delete the task:

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

Text

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

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2024_notificationfunction, author="Wolfram Research", title="{NotificationFunction}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/NotificationFunction.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_notificationfunction, organization={Wolfram Research}, title={NotificationFunction}, year={2015}, url={https://reference.wolfram.com/language/ref/NotificationFunction.html}, note=[Accessed: 22-November-2024 ]}