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:

  1. Resources might be intensive during hours of operation

  2. Data might not be readily available until a later time

  3. Adjusting the frequency of the job yields more precise and up to date data

circle-info

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

circle-info

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:

1

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.

2

Verify that there is a Schedule button in the Actions column.

3

Press the Schedule button.

circle-check
4

Select Regular Interval for the Schedule Type.

5

Select the desired Every option

circle-info

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)

6

Click the Save button.

circle-check
circle-exclamation

Last updated