magna_nz
magna_nz

Reputation: 1273

Quartz.Net using windows task schedular

I'm looking at having a scheduled task (Console app) that will run every 20 minutes.

I've looked into using Quartz.Net for doing this, and it looks great but I can't see if it will work with my console application.

What I want is:

So, Windows Task Schedular --20 mins--> run console app using Quartz.Net.

Or should I make a standard .NET Console App and just have it run the console app every 20 mins?

Cheers

Upvotes: 1

Views: 971

Answers (1)

Anestis Kivranoglou
Anestis Kivranoglou

Reputation: 8204

Don't mix Task Scheduler with Quartz they are 2 different methods of doing things.

Normally Task Scheduler is configured at an interval to run Console Applications that just do the work and close.

The suggested way to use Quartz is to Embed it in in a windows service application. Then install this service on the server and configure it to run always and automatic start (This should protect you from crashes and kills and ensure the application will be running always unlike a console application)

Upvotes: 4

Related Questions