Schedule a job¶
A scheduled job is a task that Insights runs by itself, at set times or at a regular interval. For example, a job can email a customisable report every morning, or import users from your HR system each week. This page explains the job types, and how to create, check, edit, run and stop a job.
To create and manage scheduled jobs, select Settings > Scheduling. The Scheduled Jobs page opens.
Job types¶
You choose a job's type in Job Type when you create the job. The type sets what the job does and which fields the form shows. You can't change a job's type once the job is saved.
The list holds the types available on your site and to your role, so it may be shorter than the lists below.
Report jobs¶
These jobs run a saved customisable report. You choose the report in Customisable Report.
- Email custom report emails the report as an attachment each time the job runs. See Schedule to email.
- Export custom report to file saves the report as a file each time the job runs, and emails a link to it. See Schedule to a file.
You can also start either job from the Customisable Reports page, which fills in the report for you.
Import jobs¶
These jobs import a spreadsheet that another system, such as an HR system, places in your site's import directory.
- Organisation import adds and updates users. It's the scheduled form of the import in Sync data from a HR system.
- Group Membership import adds users to groups. The file has the columns of the template in Import users to a group.
- Enrolment import enrols users. Each row of the file names a user and the catalogue item to enrol them in.
- Branching rule import imports the rules of a branching test. See Import and export branching rules.
- Event Order Import imports event orders. Each row gives an org unit's order number, date, contact and quantities.
Import jobs have these fields:
- Import filename is the name of the file in the import directory. To import every file whose name matches a pattern, use
*or?in the name. - Email address gets the result of each import, and a message if the job fails.
- Inactivate Old Group Memberships makes a user's group memberships inactive when the file doesn't list them. It assumes each user has one active membership for each group type.
- Create Groups creates any group in the file that doesn't exist yet.
Inactivate Old Group Memberships and Create Groups show for Group Membership import only.
A job skips a file that hasn't changed since the job last imported it. When the name has * or ?, the job imports every matching file, then moves each one to an archive folder.
On a site with a file server connection, the form also has Use File Server Connection. Tick it to choose the File Server Connection the job reads the file from.
Important
Before you schedule an import, contact the Janison support team. They arrange the account that your system uses to place files in the import directory.
Other job types¶
The Job Type list can hold these types as well. Each belongs to a particular feature or integration, and your site may list only some of them.
| Job type | What it does |
|---|---|
| Active archival site, Inactive archival site and Tenant Archival | Archive the site's data, and bring an archived copy of the site online or take it offline. |
| Auto Finalisation of an Active Session Code for an Org Unit | Finalises the open test sessions of each org unit that allows it. |
| Auto Generation of Test Sessions for Org Units | Creates a test session for each org unit that's set up for it, on the days chosen for that org unit. |
| Check Accreditations | Checks accreditations, updating enrolments that have lapsed and adding automatic enrolments. Listed on sites that use accreditations. |
| Check Marker Training Requirements | Moves markers from training to marking once they complete the training that a marking project requires. |
| Check missing Mp3 file | Checks the audio files in file upload responses and records the ones that are missing or empty. |
| Generate New Passwords | Generates new passwords for users whose role stores passwords unhashed. You choose the users by organisation, org unit, role and assessment event. |
| ISCO Data Population | Gathers the answers to occupation items in an assessment event's test, for ISCO coding. |
| Skillsoft Completions Synchronisation | Updates enrolments with completions from Skillsoft. |
| SRM Batch Download | Downloads, checks and processes a batch from SRM. Listed on sites with the NAPLAN plugin. |
| SubmitTestResult Task | Sends test results to an external system again, where an earlier send failed. |
| Test job | Runs a short test of the scheduler. It changes nothing on your site. |
The scheduled jobs list¶
The Scheduled Jobs page lists the jobs on your site.
- Schedule a Job opens the form for a new job.
- Scheduler Status shows whether the scheduler is online, and the jobs it has waiting.
- The Enabled, Disabled and All tabs list the jobs that are switched on, the jobs that are switched off, and every job.
- View opens the job's details, where you can edit the job and see its results.
- Run now runs the job straight away.
For each job, the list shows its Job Type and its name, under Description. Started, Finished and Status describe the job's latest run. A job that hasn't run yet shows Queued, and a job that's switched off shows NotScheduled.
Create a scheduled job¶
On the Scheduled Jobs page, select Schedule a Job. Then:
- Enter a Job Name. Each job needs a name of its own, and you can't change it later.
- Leave Enabled ticked so that the job runs. To save the job without starting it, untick Enabled.
- Choose the Job Type, then fill in the fields that appear below it. See Job types.
- Set Run From, the date and time the schedule starts. It starts as the current date and time.
- To end the schedule on a set date, set Run To.
- Choose the Schedule Type, then fill in its fields. See Schedule types.
- Select Save Scheduled Job.
The example is an Email custom report job, so the form shows that type's fields below Job Type.
Insights saves the job and opens Scheduled Job Details, where the first run waits under Current. If you unticked Enabled, the Scheduled Jobs page opens instead, and the job is on its Disabled tab.
Schedule types¶
At a regular interval runs the job again and again, a set time apart, such as every hour or every 2 days.
- Run Indefinitely puts no limit on the number of runs. It's ticked to start with.
- Run Count is the number of times the job runs. You can set it once Run Indefinitely is unticked.
- Unit is the unit of time: Minute, Hour, Day or Week.
- Frequency is how many units pass between runs.
This example runs the job twice, 2 weeks apart.
Each job type has a shortest interval: 60 minutes for report jobs and most import jobs, and 15 minutes for Organisation import. If your interval is shorter, the form tells you how often that job can run.
At scheduled times runs the job at one time of day, on the days you choose.
- Time Zone is the time zone that Time Of Day is in.
- Time Of Day is the time the job runs.
- Frequency is the days the job runs: Every Day, Monday To Friday, Monday To Saturday or Specific Day.
This example runs the job at 6 am from Monday to Friday, Sydney time.
With Specific Day, a Day Of Week list appears for you to choose the day.
Check a job and its results¶
On the Scheduled Jobs page, select View beside a job. The Scheduled Job Details page opens.
- Edit opens the job's form.
- Run now runs the job straight away.
- The top of the page shows the job's settings as they were saved, and who saved it.
- Current lists the runs that are waiting or under way, with the time each is due.
- Completed lists the runs that have ended, with each run's Status and the times it was scheduled, started and finished.
To see what a run did, select the icon beside it under Actions, in Completed. The Results window shows the run's parameters and its result. For an import, the result counts the records created, updated, reactivated and inactivated, and lists any messages by row. For a run that failed, it shows the error.
When a report job or an import job fails, Insights also emails the address on the job.
Insights adds some jobs itself. Their details show System Task as True, and they have no Edit or Run now.
Edit a scheduled job¶
On the Scheduled Jobs page, select View beside the job, then select Edit. Make your changes and select Save Scheduled Job.
The form leaves out Job Name and locks Job Type, because neither can change. For a job that runs at a regular interval, the form also shows how many times it has run.
Run a job now¶
You can run a job straight away, without waiting for its schedule. Select Run now beside the job on the Scheduled Jobs page, or on the job's details page. In the Run Task dialog, leave Run now in Scheduler (recommended) selected, then select Run now.
A message confirms that the job is queued. The run shows on the job's details page, under Current and then Completed.
An import job that you run this way imports its file even if the file hasn't changed.
The dialog's other option, Run now in CLS (not recommended - test only), is for testing and needs its own permission.
Stop a scheduled job¶
To stop a job from running, edit it, untick Enabled and select Save Scheduled Job. The job moves to the Disabled tab. To start it again, tick Enabled.
A job also stops by itself once its Run To date passes or it completes its Run Count.
Settings¶
These settings affect scheduled jobs.
Roles (Settings > Roles) — sets which roles can open Scheduling, and which can create, edit and run jobs. Run now in CLS has its own permission. Scheduling a report from the Customisable Reports page has permissions of its own, described in Customisable reports.
File Server Connection (Settings > File Server Connection) — holds your site's file server connections. While one is active, import jobs show Use File Server Connection, and Export custom report to file lets you choose where the file is saved.
Test Delivery Settings (Settings > Test Delivery Settings) — Enable Auto Generation of Test Sessions for Org Units must be ticked for the 2 test session jobs to create or finalise sessions.
Password Settings (Settings > Password Settings) — Generate New Passwords runs only while Generate Passwords is selected.






