Scheduling a Job
Scheduling Jobs allows control over when and how often system jobs should run

Use Cases
Scheduling a job is done in cases where:
Resources might be intensive during hours of operation
Data might not be readily available until a later time
Adjusting the frequency of the job yields more precise and up to date data
Types of Schedules
To describe types of scheduling, jobs can be configured via different schedule types:
⏲️Interval Schedule - executes a job on a regularly timed interval (determined by a timer). Similar to CRON jobs.
📅Calendar Schedule - executes a job during a particular calendar day.
❌No Schedule - avoids scheduling for a job. This is typically used when a job should run manually without a schedule.
Configuring a Job as an Interval Schedule
Interval Schedule
🗒️An Interval schedule is used when a job should run on a regularly timed interval.
⏰This timer is started when the SanteDB host process is started and repeats at the specified timing.
🚧To configure a job as an Interval Schedule, follow the steps below:
Locate the Job in the Jobs Table by:
👀 manually finding it in the System->Jobs table, or
🔍 using the search bar in the top right-hand corner of the screen.

Verify that there is a Schedule button in the Actions column.
Press the Schedule button.
A window will pop up with details for the selected job.

Select Regular Interval for the Schedule Type.
Select the desired Every option
Available Intervals
Below is the list of available intervals for a Regular Interval scheduled Job:
Monthly (Every 30 days)
Weekly (Every 7 days)
48 Hours (Every other day)
24 Hours (Once per day)
12 Hours (2 times daily)
6 Hours (4 times daily)
3 Hours (8 times daily)
2 Hours (12 times daily)
60 Minutes (Once per hour)
30 Minutes (2 times per hour)
15 Minutes (4 times per hour)
Click the Save button.
The Schedule Configuration Window will close and the job record in the table will update.
The Schedule/Repeat should reflect the schedule you previously entered.

Configuring a Job as an Calendar Schedule
Calendar Schedule
🗒️A calendar schedule should be used whenever the job needs to be executed on a repeated calendar day.
ℹ️Example: to refresh the materialized views at 11 PM every day starting January 26, 2022.
🚧To configure a job as a Calendar Schedule, follow the steps below:
Locate the Job in the Jobs Table by:
👀manually finding it in the System->Jobs table, or
🔍using the search bar located in the top right-hand corner of the screen.

Verify that there is a Schedule button in the Actions column.
Press the Schedule button.
After, a window should pop up with details pertaining to the job selected.

Select Calendar Schedule for the Schedule Type.
Select the desired calendar days within the Repeat field.
Selecting Calendar Days
📝one or more calendar days may be selected
1️⃣to select one calendar day, simply select the desired calendar day by clicking
➕to select more than one calendar day, either:
⌨️Hold the left-shift button and click each desired calendar day, or
🖱️Press and hold the desired starting option, and drag to the subsequent calendar day options.
Click the Save button to configure the schedule.
The Schedule Configuration Window will close and you will see the job record in the table update
The Schedule/Repeat should reflect the schedule you previously entered.

Configuring a Job to have No Schedule
No Schedule
🗒️A No Schedule is used when a job should be set to omit a schedule.
🏷️This type of schedule can be used if a job needs to temporarily disable its current schedule, or a job is considered to manually run once and done approach.
🚧To configure a Job as No Schedule, follow the steps below:
Locate the Job in the Jobs Table by:
👀manually finding it in the System->Jobs table, or
🔍using the search bar located in the top right-hand corner of the screen.

Verify that there is a Schedule button in the Actions column.
Press the Schedule button. After, a window should pop up with details pertaining to the job selected.

Select No Schedule for the Schedule Type.
Click the Save button to configure the schedule.
Verify the schedule was configured successfully.
The Schedule Configuration Window will close and you will see the job record in the table update.
The Schedule/Repeat should reflect the schedule you previously entered.

Last updated