Utils.Tasks.AddToSchedule
class Utils.Tasks.AddToSchedule
Method Inventory
- CreateOnceDailyTask()
- CreateRepeatingTaskForAllDay()
- CreateRepeatingTaskInLateMorningWindow()
- CreateRepeatingTaskInMorningWindow()
- CreateRepeatingTaskInWindow()
Methods
classmethod CreateOnceDailyTask(class 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 = "", 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 = "", 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 = "", 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 = "", description As %String = "", n As %Integer = 10, randomOffsetRange 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.