Creating Schedule Based Jobs

Q100003: Creating Schedule Based Jobs

Using a schedule to trigger when a job will be executed.

The JobServer.NET service provides a very flexible method for scheduling jobs to run at a future time. These jobs may be run very frequently, or may only be run on some longer periodic basis. This article will help show you the variety of methods that exist for scheduling these types of jobs.

Types of Scheduler Based Triggers

There are multiple types of schedulers. The various types are based around how the scheduler determines when to run, or trigger the job to start executing. There are five recurrance types of the scheduler.

Recurrance Type Description
Interval Timer When the job should be run multiple times per day.
Daily When the job should be run once a day.
Weekly When the job should be run one or more times per week.
Monthly When the job needs to be run at some date based on the calendar month.
Yearly When the job need to be run at some date based on the calendar year.

Interval Timer

The interval timer provides a very flexible method for running a job on a regular basis. The pattern it repeats on is based on the combination of options that you use when configuring it. The interval can be as simple as run this job every 10 minutes. You can combine the interval with a specific number of hours, minutes, and seconds. This can be further layered by specifying that it should only run on that interval on specified days of the week.

This can also be refined to define specific windows of time in each day that the interval should repeat in. When using run windows, the interval is always anchored to the start of each window. For example, if you configured the timer to run every 25 minutes, and then define a window from 1:00 to 3:00, and then another window from 7:00 to 8:00, then the job will be trigger to run at the following times: 1:25, 1:50, 2:15, 2:40, and then 7:25 and 7:50.

Daily

The daily scheduler can be used to have a job run at a specific time every day. Or optionally, every specified number of days. An example of the last one being to setup a job that runs at 4:00 every three days.

Weekly

The weekly scheduler provides flexibility in running a job within the structure of a given week. A job can be schedule to run at a specific time of day, on one or more days each week. Options allow specifying any combination of the days of the week. An example would be to run a job at 8:00 every Monday, Wednesday, and Friday.

Monthly

The monthly scheduler allows you to setup a trigger to run your job on a specific day of each month, every month. An example would be to run the job on the 15th of every month. When configured this way, the job will run on January 15th, February 15th, and so on.

It also allows you to base the day of the month it runs on the First, Second, Third, Fourth, or the Last day of the week for that month. An example of this would be to run the job on the first Monday of the month. When configured this way, it is not based on the day number, but the day of the week within the selected week of the month. The option for Last provides a way to run a job on the last Friday of the month.

Yearly

The yearly scheduler allows you to setup a trigger that is framed within a specific day within the calendar year. An example would be the same day every year, such as February 14th of each year.

The other options allow you to combine the First, Second, Third, Forth, or Last specific date of a month within the year. The date can be specified as a particular day of the week, or the corresponding weekday, or weekend. An example could be, the Second Monday of January.

 
Last Updated:
8/28/2023 5:39:31 PM
JobServer.NET Knowledgebase © 2025