3.5.4 Executing the same jobnet several times a day (defining cycle jobs)
If you want to execute the same jobnet more than once and at regular intervals during the course of a day, define the jobnet using one of the following three methods:
-
Method 1: Create a single jobnet, and then define multiple schedule rules.
-
Method 2: Create a new jobnet for each start time.
-
Method 3: Specify an interval control setting as a start condition for the jobnet.
- Organization of this subsection
(1) Methods for defining the jobnet
Each of these methods is described in the following paragraphs. Each description uses, as an example, the creation of a jobnet that executes 24 times a day in one-hour intervals, between 7 a.m. on the current day and 6 a.m. the following day.
- Method 1: Create multiple schedule rules
-
-
Create a single jobnet, and define the jobs to be executed.
-
Create 24 individual schedule rules with staggered start times of 07:00, 08:00, 09:00 and so on.
When you register the jobnet for execution, the jobnet is executed every hour according to the start times specified in the schedule rules.
When you use JP1/AJS3 - View to define a schedule rule, you can define a schedule that executes a jobnet at regular intervals until a time of your choosing.
-
- Method 2: Create a new jobnet for each start time
-
-
Create a single jobnet.
-
Create a nested jobnet, and define the jobs to be executed.
-
Copy the nested jobnet you created in step 2, and create a total of 24 identical nested jobnets.
-
Set a different start time between 07:00 and 06:00 for each nested jobnet.
When you register the jobnet for execution, each nested jobnet is executed according to its respective start time.
-
- Method 3: Specify an interval control setting as a start condition for the jobnet
-
-
Create a single jobnet, and define the jobs to be executed.
-
Create a start condition, and attach an execution interval control job.
-
In the Detailed Definition - [Interval Control] dialog box, in the Waiting time section, specify 60 (minutes). In the Expire right after starting section, click Yes.
-
Create a schedule rule, setting the execution start time to 7:00, and the valid range of the start condition to 24 times.
When you register this jobnet for execution, monitoring for the start condition starts at 7:00, which is the execution start time. The start condition is immediately satisfied and the first execution of the jobnet starts. Thereafter, the jobnet is executed every 60 minutes as indicated by the start condition.
-
(2) Advantages and disadvantages of each method
The following table explains the advantages and disadvantages of the three methods.
Method |
Advantages |
Disadvantages |
---|---|---|
Method 1 |
|
|
Method 2 |
|
|
Method 3 |
|
|