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, in the Scheduler Jobs Library. |
Job Restart Behavior |
Specifies whether and how the job should be restarted if it is interrupted prior to 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 executed. So if you specify 1 day, and the task is run at 11:00 PM on Tuesday, then all results prior to 11:00 PM Monday are purged. If this option is not selected, then 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:
Job execution order also depends on the priority category of a specific job execution. See Processing priority for scheduled jobs. |
Mark as System Job |
Specifies whether the job is run as a system job. Only administrators 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, this check box should only be selected for system "support" tasks that should 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, then the system will be placed into administrator-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 end users will be logged into the system and no other Scheduler jobs will be running. |
Job Variables
This tab has two sections for job variables:
-
In the Job values section at the top of the tab, you can 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 in the left-hand 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 navigate to the setting where you want to use the variable, and then paste it. The variable will be pasted with the necessary curly brackets.
For more information, see Using job variables.
Scheduling Rules
Each row in this section defines a scheduling rule for the job. Jobs will be 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 in the left-hand side of the job.
For more information, see Defining scheduling rules for a job.
Item | Description |
---|---|
Active |
Specifies whether the scheduling rule is active. If this check box is not selected, then 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. Once this date is past, no further executions will be 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 be run, in relation to the specified days:
|
Minutes |
Specifies the time of day (minutes) that you want the job to be run, in relation to the specified hours:
|
The following are some example schedules 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/2021) at 1:30 PM (Option 1) |
Start: 06/30/2021 00:00 End: 07/01/2021 00:00 |
* | 13 | 30 |
One time (6/30/2021) at 1:30 PM (Option 2) |
Start: 06/30/2021 13:30 End: 06/30/2021 13:30 |
* | * | * |
Every Wednesday in July at noon |
Start: 07/01/2021 00:00 End: 08/01/2021 00:00 |
3 | 12 | 0 |
Continuous | <optional> | * | * | * |
To schedule a job to execute 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 will be executed on the first day of each month, at 3:30 AM:
Example scheduling rules to execute a job monthly
When you save the job, the rules will be evaluated and the first scheduled execution will be placed on the schedule—in this example, the January 1 execution. Once that scheduled execution is complete, the rules will be evaluated again, which will cause the next scheduled execution (Feb 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 Managing event handlers.
- User-defined event handlers, for running jobs via RunEvent. See Creating 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 in the left-hand 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 will 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 will be affected when the event handler is triggered. |
Execute As |
The user identity under which the job will be run when the event handler is triggered.
|
Notification
This section defines email notification settings for the job. For more information, see Setting up notifications for jobs.
Job variables can be used in this section. For more information, see Using job variables.
Item | Description |
---|---|
Job Notification Level |
Specifies when email notifications are sent for the job. Select one of the following:
If anything other than None is selected, then 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 Send email notification to different email addresses when the job has errors or succeeds is enabled. |
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 Send email notification to different email addresses when the job has errors or succeeds is enabled. |
User Message |
Optional. The body text for the notification email. Text entered here will be appended to the body text generated by 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 window. 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 type the new name. For example, if you have a job with multiple File Processing tasks, then you may 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 it should not 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
Displays historical results for the job. This section is blank if the job has never been run.
Job results may be purged periodically by using 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 executed. Administrators see results for all executions.
For more information on job results, see Viewing job results.