- 15 Dec 2021
- 2 Minutes to read
- Print
- DarkLight
Interval Job
- Updated on 15 Dec 2021
- 2 Minutes to read
- Print
- DarkLight
Overview
An Interval Job is a type of Scheduled Job that allows a user to pick a Flow and run it a defined number of times with a provided interval (as a timer).
An Interval Job sets the interval or the time span between when a job should be run via the Interval control. By using the Count input, users are able to set how many times the Flow should be run.
A Scheduled Job sets the time and day that a Flow is run. There are pre-set Calendar settings to help, such as setting the flow to run on the first or last day of the month.
The Scheduled Job can also use the TimeSpan control, but only if a user sets the Calendar control to TimeSpan Schedule.
Example
- From a Designer Project, click CREATE FLOW on the Global Action Bar. Select Flow, provide a Name, then click CREATE.
- From the Flow Designer, add a Send Email steps from the FAVORITE STEPS category, of the Properties tab on the left. Connect this step to the Start and End steps.
- Select the Send Email step to navigate to its Properties tab.; configure the EMAIL Properties.
- Constant map an Email address into the From and To Properties respectively.
- Map the desired Email Subject and Body.
- Save the Flow, then close via X.
- From the Studio Portal, navigate to System > Jobs and Events > Scheduled Jobs.
- From the Folder's Global Action Bar, select Add Interval Job.
- From the Add Interval Job window, define the Job Name, then click PICK FLOW; select the previously created Email Flow, then PICK.
- Set the Count to 3, then set the Interval to 5 Minutes, then click SAVE. These configurations will trigger the Interval Job to run 3 times, every 5 minutes, if desired, the Thread Queue Name may be changed and the Job can be configured to Only Run on Job Server.Interval Jobs Running in a Clustered EnvironmentInterval Jobs work differently from Scheduled Jobs within a Clustered Environment. Interval Jobs will run on all cluster nodes unless the 'Only Run on Job Server' boolean is enabled. This option will allow Interval Jobs to run on one active job server but still offers a fallback option if there are multiple servers that are set as can be job servers. If the 'Only Run on Job Server' boolean is not enabled, then jobs will run on all cluster nodes if not properly configured, which can result in duplicate executions.
Navigate to the INTERVAL JOBS tab to verify that the Job has been defined. The Interval Job may be edited or deleted by right-clicking the Job and utilizing its Action menu.
Wait for the amount of time defined by the Interval property, then navigate to the inbox of the To address to verify that the Job sends the Email three times.