Skip to main content

Utils.Tasks.AddToSchedule

class Utils.Tasks.AddToSchedule

Method Inventory

Methods

classmethod AddAUTOLOADTasks(verbose As %Boolean = 0)
classmethod AddAUTOREPORTTasks(verbose As %Boolean = 1)
Adds specific tasks if AUTOREPORT is on & removes those tasks otherwise
classmethod AddCommonTasks(verbose As %Boolean = 1)
classmethod CreateOnceDailyTask(class As %String = "", name As %String = "", description As %String = "", startHour As %Integer, verbose As %Boolean = 0)
Creates a task that runs once a day, starting at the given hour (24-hour clock)
classmethod CreateRepeatingTaskForAllDay(class As %String = "", name As %String = "", description As %String = "", n As %Integer = 10, verbose As %Boolean = 0)
Creates a task that runs multiple times a day all day, every n minutes
classmethod CreateRepeatingTaskInLateMorningWindow(class As %String = "", name As %String = "", description As %String = "", n As %Integer = 10, verbose As %Boolean = 0)
Creates a task that runs multiple times a day between 7 am and 11 am, every n minutes
classmethod CreateRepeatingTaskInMorningWindow(class As %String = "", name As %String = "", description As %String = "", n As %Integer = 10, verbose As %Boolean = 0)
Creates a task that runs multiple times a day between 5 am and 9:30 am, every n minutes
classmethod CreateRepeatingTaskInWindow(class As %String = "", name As %String = "", description As %String = "", n As %Integer = 10, randomOffsetRange As %Integer = 0, priority As %Integer = 0, verbose As %Boolean = 0)
Creates a task that runs multiple times a day between 9:30 am and 9 pm, every n minutes If randomOffsetRange is specified, a random offset in that range (positive or negative, in minutes) is added to both the start and end times of the task window, so the task is run the same number of times per day as otherwise but with the timing offset by some amount in this range.
FeedbackOpens in a new tab