Sample.TaskExample3
class Sample.TaskExample3 extends Sample.Task
Find any tasks which should be running but have not Edit this class and change the who@somecompany.com to your email address and update the smtp server in the SendMail method before schedulingProperty Inventory
Method Inventory
Properties
property Notify as %String);
list of email addresses ; delimited to notify
Property methods: NotifyDisplayToLogical(), NotifyGet(), NotifyIsValid(), NotifyLogicalToDisplay(), NotifyLogicalToOdbc(), NotifyNormalize(), NotifySet()
property NotifyOnOK as %Boolean [ InitialExpression = 0 ];
HealthCheck if set to 1 - Will notify that all jobs are completing successfully
Property methods: NotifyOnOKDisplayToLogical(), NotifyOnOKGet(), NotifyOnOKIsValid(), NotifyOnOKLogicalToDisplay(), NotifyOnOKNormalize(), NotifyOnOKSet()
Methods
method OnTask() as %Status
query the existing tasks look for tasks which are running and passed
the next run time. If problems occur send email to notify.
classmethod ScheduleOnceDaily() as %Status
Example showing schedule with saving custom property values (Notify, NotifyOnOK)
Inherited Members
Inherited Properties
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()
- AlternativeOnTask()
- GetCollectionType()
- GetPropertyName()
- GetSettings()
- GetTaskName()
- OnSubmit()
- ScheduleAfterAnother()
- ScheduleHourly()
- ScheduleMonthly()
- ScheduleWeekly()
- SetSettings()
- SuspendAndResumeTask()