Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How reliable is windows task scheduler for scheduling code to run repeatedly?

I have a bit of code that needs to sit on a windows server 2003 machine and run every minute.

What is the recommended way of handling this? Is it ok to design it as a console service and just have the task scheduler hit it ever minute? (is that even possible?) Should I just suck it up and write it as a windows service?

like image 687
George Mauer Avatar asked Apr 06 '09 18:04

George Mauer


People also ask

Will scheduled tasks run when computer is off?

No, it won't execute.

How do I make Task Scheduler run every 2 hours?

After we select the batch file, we go to the right tab and select 'Properties', and the task Properties tab should appear: We go to the 'Triggers' tab and select the 'Edit' option: An 'Edit Trigger' screen will appear. To set the script to run hourly, we select the 'Repeat task…' option and enable it.


1 Answers

Since it needs to run every single minute, I would suggest writing a Windows Service. It is not very complicated, and if you never did this before, it would be great for you to learn how it is done.

Calling the scheduled task every minute is not something I would recommend.

like image 130
jgallant Avatar answered Oct 03 '22 15:10

jgallant