Geeks With Blogs


View Tarun Arora's profile on LinkedIn

profile for Tarun Arora at Stack Overflow, Q&A for professional and enthusiast programmers

Tarun Arora - Visual Studio ALM MVP ALM, Agile, Automation, Performance Testing, Software QA, Cloud, ...


Quartz.NET is a full-featured, open source enterprise job scheduling system written in .NET platform that can be used from smallest apps to large scale enterprise systems.

Suggested Further Reading


What is the problem that we trying to address?

I want to schedule the execution of a task but only when something happens. Let’s call that something a trigger, so... if the trigger is met => execute the task. image Sounds simple, why not use windows task scheduler for this?

Well, windows task scheduler is great for tasks where the trigger can be easily defined. With windows task scheduler will you be able to schedule a task to run on every working day according to the UK calendar (exclude all weekends & bank holidays) without either writing the logic for day check in the task or a wrapper script calling into the task.

The task should just contain the execution logic and should not have anything to do with the schedule for execution; allows you to achieve this and lots more. A trigger gives you the flexibility for task invocation based on the following triggers,

  • 1. at a certain time of day (to the millisecond)
  • 2. on certain days of the week
  • 3. on certain days of the month
  • 4. on certain days of the year
  • 5. not on certain days listed within a registered Calendar (such as business holidays)
  • 6. repeated a specific number of times
  • 7. repeated until a specific time/date
  • 8. repeated indefinitely
  • 9. repeated with a delay interval

Did 8 – repeat indefinitely just ring a bell? I’ll be covering that in the future post.

Using as a windows service

You can have run as a standalone instance within its own .NET virtual machine instance via .NET Remoting. Let’s take a look at typical application architecture. In the figure below, I have the application tier set up on Machine 1, database set up on Machine 2 and set up on Machine 3 which is normally the architecture for most (if not all) enterprise applications.


Figure 1 -  Typical Application architecture while using as a windows service

What other options do I have if I don’t want to use is just one of the many job scheduling services. Have a look at this comprehensive list of free and paid enterprise job scheduling software along with their feature comparison.

This was first in the series of posts on enterprise scheduling using, in the next post I’ll be covering how to Install as a windows service. All Quartz.Net specific blog posts can listed here. Thank you for taking the time out and reading this blog post. If you enjoyed the post, remember to subscribe to Stay tuned!

Posted on Tuesday, April 10, 2012 9:50 PM Quartz.Net | Back to top

Comments on this post: Walkthrough: Scheduling jobs using – Part 1: What is Quartz.Net?

# re: Walkthrough: Scheduling jobs using – Part 1: What is Quartz.Net?
Requesting Gravatar...
May de Ville Hotel reflects both the long time impeccable elegance of Hanoi as well as the rapid changes sweeping the city in recent years.
Left by luonghuyen on Apr 11, 2012 3:31 AM

# re: Walkthrough: Scheduling jobs using – Part 1: What is Quartz.Net?
Requesting Gravatar...
Great Post quiet helpful for the coder and programmer just a nice platform for the programming world People.
Left by PHP development on Apr 11, 2012 7:49 AM

comments powered by Disqus

Copyright © Tarun Arora [Microsoft MVP] | Powered by: