Job
Scheduler: Job
This is where you create and edit scheduled jobs. There are many different Job Types that you are able to run.
Service
Errors
Run Times
Minute, Hour, Day, Month and Weekday are multi-select boxes. Hold down the Ctrl key to select multiple values.
Warning: The schedule times take some getting used to. The combination allows the scheduling of re-occurring execution for any minute of any day of the year. For example, to execute a job at the end of the financial year, you would select 0 minute, 12am hour, 1st day, Jul month and All weekdays. New jobs do not have any run times set by default and must be set before saving. Jobs should generally not be set up to run every minute where possible. Users will be alerted with a pop up message if they have selected the run times to every minute.
If a Parent Job ID is entered, Run Times cannot be edited and will use the Parent Job Run Time parameters.
Important: Whilst it is possible to set run times to run a job every minute it is not recommended. Doing so may impair the system response times and slow down user work. It is recommended that if a job is run on a frequent basis, set as a minimum time to run on 15 minute intervals and limit to possibly working days as an example.
Additional Fields
Buttons
Top Buttons
Copy: Create a new job based on the current job
New: Create a new job
Bottom Buttons
Edit: Edit an existing job
Run Now: Click to run the job manually. Run Now is available for selected job methods only and requires an entry in gb_service_process_types. Refer to the Validations and Alerts Run Now section for issues you may see here. Run Now can run a chain of parent-child jobs, or you can opt to run just the selected job from within the chain. Refer to the Validations and Alerts Run Now - Job Chain section for the various selections
Edit Buttons
Cancel: When editing, click to cancel any changes you have made
Save: When editing, click to save changes you have made to the current job
Field Entry Validations
Send Mail / Report Queue Alert
Selecting "Send Mail" will disabled "Report Queue" and remove all linked recipients. Do you want to continue? OK / Cancel
A confirmation alert that is displayed when "Send Mail" is checked and "Report Queue" had been checked. Only one of these check boxes can be selected
Report Queue Unselect Alert
Unselecting "Report Queue" will remove all linked recipients. Do you want to continue? OK / Cancel
A confirmation alert that is displayed when "Report Queue" is unchecked
Save Validations
Run Now Validations
Run Now - Job Chain
Job has active children. Run child jobs also? The job is a parent, or is part of a chain of parent-child jobs. Click OK to run the job and it's children. To run just the selected job, click Cancel > 'Just run this job?' Click OK. Click Cancel to exit the process without running any jobs
Troubleshooting
Attachment Formatting Issues
If your scheduler job is using 'Office(xlsx)' as the "Mail Attachment", you cannot use a customised Format. Go to the Scheduler / Job and change the output format to be 'Office(xls)' if you want to create and use a customised Format.
Parent Job
The Scheduler / Job "Parent Job ID" field allows you to link the job to another as a 'child'. Child jobs run automatically after the parent job each time it completes successfully.
Run time parameters are not set in child jobs. This is determined by the parent.
Any job may be a parent or a child or both. Multiple jobs can be linked in this way.
To Review Linked Jobs
Go to Scheduler / Schedule
Enter the parent job id into the "Job ID" field
Check on the "Show all Children" check box
The parent job and its children will display on the screen
If the children are also parents, their children will also be displayed (and so on)
The jobs will display in cascade order (Parent, Children, Grandchildren, Great Grandchildren)
Setting a Parent Job to 'Inactive'
When a parent job is made 'inactive', child jobs are made 'inactive' at the same time. You will be alerted if this is going to happen. Continue with the process if making the child jobs 'inactive' is appropriate for the situation.
When you make a parent job active again, the child jobs do not update automatically (they will remain 'inactive'). You will need to edit each child and update their "Status" to 'active' again individually.
If you do not want the child jobs to become inactive, you will need to edit them and remove the "Parent Job ID" link. The child will retain the run time parameters that were held by the parent job. These can now be edited if required.
Queue
The queue screen displays entries from gb_scheduler_queue. It contains many entries for the majority of scheduled jobs listed in gb_scheduler_jobs. Filters are applied when the go button is clicked and all filters (except Job Queue ID) combine to provide the minimum results.
Filters
Columns
The column headers of this screen are dynamically sortable. By selecting the grey box header, the data will be sorted in an ascending order. If selected again, the data will be sorted in a descending order.
Report Queue
The Scheduler / Job "Report Queue" check box allows you to send attachments directly to System / Report Queue. "Report Queue" is only available for the executeQuery method.
Behaviour of Report Queue Field
When "Report Queue" is selected, the "Recipients" section updates to show the appropriate fields for this function. If "Report Queue" is unchecked, the "Recipients" section will show the standard emailing fields.
When "Report Queue" is selected, it will not display "Type" and "Receipt Flag" fields. Instead, it will display "User" and "Notify" fields.
When a user is selected, their "Notify" check box will default to show the setting stored in their System / Users "Report Queue Notifications" checkbox. This can be updated if required.
When "Notify" is unchecked, the user will not be notified when the report is ready.
When "Notify" is checked, the user will receive an email when the job has run and the report is ready.
Recipients Fields When Report Queue Is Selected
Recipients Fields When Report Queue Is Not Selected
Attachment Required Field When Report Queue Is Checked
If 'Attachment Required' is unticked and 'Notify' is ticked: user will be notified as soon as report has run even if there is no attachment. In Report Queue screen, it will show the report with no attachment
If 'Attachment Required' is ticked and 'Notify' is ticked: user will be notified only when there is an attachment
Please refer to the workflow chart in the Report Queue section to get more details about the Report Queue workflow.