Schedule rules are essential to ensure the collected data to always be up to date. As opposed to a single-time run Integration task, scheduled Integration tasks run one after another in accordance with a set schedule.
For a source Integration, Schedule rules create a schedule of data updates from a single data source:
For a Merge Module Integration, Schedule rules create a schedule of data updates from all the sources, and this schedule is based on each of the sources own schedules:
That all together leads to creation of a statistics update chain - a chain of data updating Integration tasks, see below.
Statistics update chain
Since data source's statistics is never static, the source Integration must re-collect it regularly to keep it updated. If there's a Merge Module Integration that uses that source Integration's data, it must also re-collect it regularly otherwise it will be using outdated data. Any other Integrations involved must also take and be taken into consideration.
In other words, all the re-collected from data sources statistics must reach other Integrations in a form of pass-it-on activity:
Find an example of such an update chain being set up for two source Integrations and one Merge Module Integration in the corresponding part of Schedule the Integration task runs article of our Workflow in detauls guide.
Data sources own limitations
Some of the data sources have various limits on data collection: number of tasks, date range length, etc. This has to be taken into consideration if there are a few source Integrations of the same data source in the account.
What is a Schedule rule
A Schedule rule is a set of parameters for an Integration task to run with. The set includes single-time run Integration task parameters and scheduling ones, see the Create a Schedule Rule dialogue below:
In the pic above: 1. Single-time Integration task run parameters; 2. Scheduling parameters
Scheduling parameters are:
- Schedule - a scheduling tool that allows setting an accurate schedule timing with either one of the tree ways available:
- Enabled - on/off switch, enables or disables the rule
So if you need a certain Integration task to run on a certain schedule, you just create a Schedule rule for it.
Where to set
Clicking a +NEW RULE, you are to set parameters of your new rule. Typical ones:
This is how Schedule rules look when there are some created:
You can edit them or quickly turn off and back on when needed.
Schedule rules of all the Integrations of your account are available in the Schedule section of it.
Schedule setting recommendations
An Integration task cannot be scheduled to run more frequently than once every 10 minutes.
To not overload the report with rules, take these steps when setting up the schedule:
- Run the task with the exact same settings as it will be set up for a schedule rule.
- Track the amount of time it takes to be completed.
- When setting up the schedule, make sure all the rules have enough time to run: every next rule starts AFTER the previous one is completed.
task_1 takes 30 minutes and is set to start at 13:00. The next task,
task_2, must not start before 13:31.
Depending on the tasks, the gap between them should be long enough to let the first task run till it's completed.