Introduction
The jobs used in JobStreams can have their individual run times, which changes the execution process of the job in a JobStreams. The run time to the job can be used to postpone the execution of a job in the JobStream. There are two possible solutions in which the execution of the job can be postponed in a JobStream:
- Postpone the execution for a later hour within the same day
- Postpone the execution of the job for a later day
Postpone the execution for a later hour within the same day
Postpone the execution of job for a later hour within the same period or same day
The execution of a job in a JobStream can be postponed for the later hours by assigning a Time Slot frequency.
The job in the JobStream will only be executed if the execution time for the job is between the Time Slot interval. If the execution time is not in the Time Slot interval, then the job is added to the Task Queue for later execution and will be marked as Not In Period.
E.g., If we want to restrict a job execution for two hours i.e., a job should be executed every day between the time interval from 14:00 to 16:00, then we can assign a Time Slot frequency to the job with Begin = 14:00 and End = 16:00. Refer to the screenshot for reference.
Postpone the execution of the job for a later day
To skip the execution of the Job in a JobStream, you need to assign a working day calendar to Job.
The working day calendar assigned to the Job includes the dates in a frequency on which should not be skipped.
A job can be skipped by assigning a calendar in two ways:
- Create a working day calendar, including only the dates on which the Job should not be skipped.
- Create a working day calendar with a frequency every day. Assigning it to the Job and adding a restriction.
E.g., If we want to skip the execution of a job in a JobStream from Monday to Friday, then create a working day calendar with a frequency every day. Assign the calendar to the Job and then add a restriction as Sat and Sun.
This means that when the Job Stream runs (Monday to Friday) and as the Job has a restriction to run only Saturday and Sunday (due to assigned calendar) then the Job will be skipped and generate the event for the OutCondition rc:0.
Note: If a job is skipped, then it creates the event for the OutCondition rc:0. And it cannot be modified.