AX2537
Job properties
This topic is a reference for the settings that can be defined for a Scheduler job.
General
This section defines general settings for the job.
| Item | Description |
|---|---|
| Description |
Optional. The description of the job. The job description can also be edited in Axiom Explorer > Scheduler Jobs Library. |
| Job Restart Behavior |
Specifies whether and how the job should be restarted if it is interrupted before completion. Select one of the following:
A job would be interrupted if the Scheduler server processing it was restarted, or if the Scheduler service on the server was stopped or restarted, or if the Scheduler server was disabled from the Servers tab (Service > Servers) of the Scheduler dialog. |
| Job Results Cleanup |
Specifies whether historical job results are purged when the job is run. To purge job results:
A day is counted as 24 hours from the time the cleanup task is run. So, if you specify one day, and the task is run at 11:00 PM on Tuesday, all results before 11:00 PM Monday are purged. If you do not select this option, historical job results remain in the database until the system's Purge System Data task is run. |
| Priority Elevation |
Specifies the priority of the job in the scheduled jobs queue, within the job's priority category. Select one of the following:
The order of job runs also depends on the priority category of a specific job run. See Process priority for scheduled jobs. |
| Mark as System Job |
Specifies whether the job is run as a system job. Only admins can edit this check box. If this check box is selected, the job is run under the Scheduler Service system identity instead of a user identity, and the job is run by the system Scheduler server, which operates on the Axiom Application Server. Generally, only select this check box for system support tasks that do not depend on individual user rights. This check box is not available if the job contains non-system tasks (generally, spreadsheet-related tasks). For more information, see System jobs. |
|
Put the system in 'admin only' mode during this job |
If this option is selected, the system is placed into admin-only mode at the start of the job and then placed back into full access mode when all tasks are completed (including any sub-jobs). This is the same behavior as going to Manage > Security > System Access and selecting Administrators Only. NOTES:
Generally speaking, any job set to run using admin-only mode should be run at a time when no users are logged into the system and no other Scheduler jobs are running. |
Job variables
This tab has two sections for job variables:
-
In the Job values section at the top of the tab, manage user-defined variables for use in the current job.
To add or remove variables, use the Add, Remove Selected, or Clear All commands in the Job Variables group of the Job tab. This group is only available when you have selected the Job Variables section on the left side of the job.
When creating user-defined variables, do not add curly brackets to the variable name. Curly brackets are only required when you use the variable in a job or task setting.
- In the System defined values section at the bottom of the tab, you can view the system variables available for use in the job.
You can right-click any variable in this section (user-defined or system-defined) and select Copy variable name to clipboard. You can then go to the setting where you want to use the variable, and paste it. The variable is pasted with the necessary curly brackets.
For more information, see Use job variables.
Scheduling rules
Each row in this section defines a scheduling rule for the job. Jobs are automatically scheduled according to the settings in this section.
To add or remove scheduling rules, use the Add, Remove Selected, or Clear All commands in the Scheduling Rules group of the Job tab. This group is only available when you have selected the Scheduling Rules section on the left side of the job.
For more information, see Define scheduling rules for a job.
| Item | Description |
|---|---|
| Active |
Specifies whether the scheduling rule is active. If you do not select this check box, the rule is ignored for purposes of scheduling the job. |
| Starting On |
Optional. Specifies the earliest date and time for the scheduling rule to take effect. If you want the job to run one time only, set Starting On and Ending On dates to the same date/time. |
| Ending On | Optional. Specifies the expiration date and time for the scheduling rule. After this date is past, no further runs are scheduled for this rule. |
| Day of Week |
Specifies the day(s) of the week that you want the job to be run:
|
| Hours |
Specifies the time of day (hours) that you want the job to run in relation to the specified days:
|
| Minutes |
Specifies the time of day (minutes) that you want the job to run in relation to the specified hours:
|
See the following schedule examples and the rules used to achieve them.
| Schedule | Start/End | Day of week | Hours | Minutes |
|---|---|---|---|---|
| Weekdays at 11:00 PM | <optional> | 1,2,3,4,5 |
23 |
0 |
| Every 15 minutes | <optional> | * |
* |
0,15,30,45 |
| Mondays at 11:30 PM | <optional> | 1 | 23 | 30 |
| One time (6/30/2023) at 1:30 PM (Option 1) |
Start: 06/30/2023 00:00 End: 07/01/2023 00:00 |
* | 13 | 30 |
| One time (6/30/2023) at 1:30 PM (Option 2) |
Start: 06/30/2023 13:30 End: 06/30/2023 13:30 |
* | * | * |
| Every Wednesday in July at noon |
Start: 07/01/2023 00:00 End: 08/01/2023 00:00 |
3 | 12 | 0 |
| Continuous | <optional> | * | * | * |
To schedule a job to run monthly, create twelve active scheduling rules, one for each month. This is necessary because scheduling rules do not have a property for day of month, so it is not possible to use a single scheduling rule to create a monthly schedule. In the following example, the job runs on the first day of each month at 3:30 AM.
When you save the job, the rules are evaluated and the first scheduled run is placed on the schedule—in this example, the January 1 run. After that scheduled run is complete, the rules will be evaluated again, which causes the next scheduled run (February 1) to be placed on the schedule, and so on.
Event handlers
If an event handler is associated with the job, it is listed here. There are two types of event handlers:
- System event handlers, for completing system-triggered tasks. See Manage event handlers.
- User-defined event handlers, for running jobs with RunEvent. See Create event handlers for a job.
To add or remove event handlers, use the Add, Remove Selected, or Clear All commands in the Event Handlers group of the Job tab. This group is only available when you have selected the Event Handlers section on the left side of the job.
| Item | Description |
|---|---|
|
Active |
Specifies whether the event handler is active or not within the current job. If inactive, then actions that trigger the event handler ignore this job. |
|
Event Name |
The name of the event handler. Multiple jobs can have an event handler with the same name; all those jobs are affected when the event handler is triggered. |
|
Execute As |
The user identity under which the job runs when the event handler is triggered.
|
Notification
This section defines email notification settings for the job. For more information, see Set up notifications for jobs.
Job variables can be used in this section. For more information, see Use job variables.
| Item | Description |
|---|---|
|
Job Notification Level |
Specifies when email notifications are sent for the job. Select one of the following:
If you select anything other than None, you must complete the remaining fields. |
|
To |
The email address(es) to receive the notification email. Separate multiple addresses with a semicolon. |
|
To (on error) |
The email address(es) to receive the notification email when the job fails. Separate multiple addresses with a semicolon. Only applies when you enable Send email notification to different email addresses when the job has errors or succeeds. |
|
From |
The email address to use as the From address for the notification email. |
|
Subject |
The subject text for the notification email. |
|
Subject (on error) |
The subject text for the notification email when the job fails. Only applies when you enable Send email notification to different email addresses when the job has errors or succeeds. |
| User Message |
Optional. The body text for the notification email. Text entered here is appended to the body text generated by the Scheduler. |
Tasks
This section defines the tasks in the job. In the ribbon, task commands are available on the Job tab in the Tasks group:
- To add a task, click Add.
- To change the order of tasks, select a task and then click Move Up or Move Down.
- To delete a task, select the task and then click Remove Selected.
- To delete all tasks, click Clear All.
- To copy a task, right-click the task and then click Copy. You can copy the task within the same job, or to another open job in the Scheduler. Right-click any task (or the Tasks section header) and then select Paste. The job is pasted underneath the job you right-clicked (or at the end of the list if you right-clicked the Tasks section header).
- To rename a task, double-click the task name to make it editable, and then enter the new name. For example, if you have a job with multiple File Processing tasks, you might want to edit the name of each task so that you know which file each task relates to at a glance. (You can also right-click and select Rename.)
Tasks are processed in the order they are listed in the job. By default, when you add a new task to a job, it is placed at the bottom of the list. Make sure to move the new job if you do not want it to be processed last.
Tasks can be processed concurrently instead of sequentially if they are configured to be run as a subordinate job within the parent job.
Each task type has its own unique settings in addition to the standard task settings. For more information, see Scheduler tasks.
Job results
Job results show historical results for the job. This section is blank if the job has never been run.
Purge job results periodically by selecting the Job Results Cleanup option for the job, or by the system Purge System Data task.
NOTE: Users with the Scheduled Jobs User security permission only see results for jobs that they ran. Admins see results for all runs.
For more information on job results, see View job results.
