3.5.3 Defining a different schedule for some jobs in a jobnet
To execute some jobs in a jobnet according to different schedules, use nested jobnets.
You can set schedule rules for nested jobnets, as with root jobnets. You define schedule rules for nested jobnets by linking them with the schedule rules for the root jobnet. You can link multiple nested jobnet schedule rules to one root jobnet schedule rule.
If you do not define a schedule for a nested jobnet, the nested jobnet is executed according to the same schedule as the root jobnet.
- Organization of this subsection
(1) Defining a schedule for a nested jobnet
First, create a nested jobnet under a root jobnet. Define the jobs that you want to execute according to a different schedule under the nested jobnet. Once you have defined the nested jobnet, set the schedule rules for the nested jobnet.
Now register your defined root jobnet for execution. The nested jobnet runs according to the schedule you defined. However, the nested jobnet is only executed when the execution conditions of the upper-level jobnet are met. Even if you have defined a schedule for the nested jobnet, it will not be executed on days when the root jobnet is not scheduled for execution.
The following figure shows the use of a schedule for a nested jobnet.
In this example, the nested jobnet B is executed only on Fridays. This means that nested jobnet B is not executed on Monday through Thursday, regardless of whether jobnet A is executed.
(2) Linking to the schedule rules of the root jobnet
You define schedule rules for a nested jobnet by linking them with the schedule rules of the root jobnet. When a schedule rule of the root jobnet comes into effect, the linked schedules of the nested jobnet also come into effect.
The following is an example of linking schedule rules.
In this example, the schedule rule for Nested jobnet B is not linked to Schedule rule #2 of the root jobnet. This means that on August 11, when the root jobnet is executed according to Schedule rule #2, the Nested jobnet B is not executed.
Take note of the following when you define a schedule for a nested jobnet:
-
A nested jobnet is not executed if there is no point at which the schedules of the upper-level jobnet and the nested jobnet overlap. If you copy a nested jobnet from another location, check the upper-level schedule before you define the schedule.
-
For a nested jobnet, you can define a schedule that extends over two days. In such a case, specify an execution start time for the nested jobnet between 24:00 and 47:59. For example, assume that the execution start time of the root jobnet is 20XX/8/1 23:00, and you want the execution start time of the nested jobnet to be 2 a.m., on the next day. In this case, specify 20XX/8/1 26:00 as the execution start time. This gives the root jobnet and the nested jobnet the same execution start day. If you specify 20XX/8/2 2:00 as the execution start time for the nested jobnet, the nested jobnet will not execute because the execution start dates for the root jobnet and the nested jobnet are different.
-
If you link multiple nested jobnet schedule rules that have the same execution start date to one root jobnet schedule rule, the schedule rule with the earliest start time takes effect. If the execution times of the schedule rules overlap, the schedule rule that has the lowest rule number overrides other schedules. Because other schedule rules are disabled, see 3.5.4 Executing the same jobnet several times a day (defining cycle jobs) for information about executing multiple jobnets a day.
-
If the start time of the nested jobnet is earlier than that of the root jobnet, and the start time is earlier than the base time, the root jobnet and the nested jobnet will be scheduled to execute on different days. As a result, the nested jobnet fails to execute. Two examples are shown below, one where the nested jobnet executes and one where it does not.
Figure 3‒7: When the nested jobnet start time precedes the root jobnet start time (example where the nested jobnet executes) In this example, the nested jobnet's start time (7:00) comes after the base time (6:00). This gives the root jobnet and the nested jobnet the same execution start day, so the nested jobnet will execute.
Figure 3‒8: When the nested jobnet start time precedes the root jobnet start time (example where the nested jobnet does not execute) In this example, the nested jobnet's start time (5:00) precedes the base time (6:00). The nested jobnet will not execute because it has a different execution start date from the root jobnet.
-
When multiple schedule rules have been defined for a root jobnet, schedules whose execution times overlapmight be created, depending on the schedule rules. For the schedules whose execution times overlap, the schedule that has the smallest rule number overrides other schedules. If overridden schedule rules have been linked to nested jobnets, the schedules of the nested jobnets are also overridden.
The following figure shows an example of scheduling when execution times calculated from schedule rules overlap.
Figure 3‒9: Example of scheduling when execution times calculated from schedule rules overlap In this example, execution times of Root jobnet A on August 4 calculated from Schedule rules #1 and #2 overlap. In this case, Schedule rule #1, which is the schedule rule with the smaller rule number, overrides Schedule rule #2. Nested jobnet B linked to Schedule rule #1 is executed, but Nested jobnet C linked to overridden Schedule rule #2 is not executed on August 4.