Adding the BatchShiftsGeneration task to the Job Scheduler
Use this procedure to run the Batch Shift Generation task on a regular schedule. To ensure shifts are generated correctly, the Auto Assignment Scheduler task must always run first. This sequence ensures that shifts, whether assigned or unassigned, are created on time and at scale without manual intervention.
- From the homepage, select Maintenance > System Administration > Job Scheduler.
- Click Add Schedule.
- Specify this information:
- Task Description
- Specify a brief description of the task.
- Task Type
- Select BatchShiftsGeneration.
- Task Affinity
- Select a scheduler from the list to run the task.
- Max Failures Allowed
-
Provide the number of maximum allowable failures for a Job Scheduler task.
This parameter suspends a task if the number of sequential failed task runs exceeds the parameter setting.
For example, if the parameter is set to 10, a task is suspended when 10 task runs fail consecutively. The task does not run again until it is manually re-enabled.
Note: Specify a value 0 to keep the task running regardless of errors.
- In the Scheduling Time section, select one of these options:
- Once: Specifies that the task runs only once. If you select this option, you must run the task manually after the initial running of the task.
- Daily: Schedules the task to run automatically at intervals every day or every few days. Specify these fields to set the intervals at which the task runs:
- Every Day(s): Defines the number of days between task runs.
-
Interval Second(s): Specify the number of seconds between runs in the field.
The application requires a minimum interval of 5 seconds between runs. A value of -1 indicates that the field is not used.
- Weekly: Schedules the task to run automatically on the specified days of the week.
- Monthly: Schedules the task to run automatically during the specified months. Select one of these options:
-
Day Of: Specify a day of the month to schedule the task to run only on the specified day. For example, if you specify 1, the task runs on the 1st day of each selected month.
If this value is greater than the total number of days in a month, the task runs on the last day of the month. For example, if a task runs on the 30th of each month, the task runs on the 28th or 29th in February.
- Of: Select the week of the month, such as Second, and the day of week, such as Thursday, when the task runs from the two drop-down lists.
-
- In the Blackout Period section, optionally select one of the these options:
- None: Blackout periods are not included in batch shift generation schedules.
- Daily: Schedules the task to run at intervals of days and minutes. Select from these options:
- Every Day(s): Defines the number of days between task runs.
-
Interval Second(s): Specify the number of seconds between runs in the field.
- Weekly: Schedule the task to run on specific days of the week.
- Monthly: Schedule the task to run on specific months and on days of the month. Use one of these options:
- Select the Day Of option and specify the day of month on which the task is to be run.
- Select the Of option and select the week of the month and the day of week on which the task is to be run.
- Select the check boxes to indicate which months of the year in which the task is run.
- In the Scheduling Range section, specify this information:
- Start On
-
Specify the initial start date of the task run.
Note: This field is required.
- End By
- Specify the last date the task is run. Leave the field blank to schedule the task to run indefinitely.
- Click Save.