How reliable is windows task scheduler for schedul

2019-04-29 19:00发布

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?

8条回答
做自己的国王
2楼-- · 2019-04-29 19:54

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.

查看更多
Bombasti
3楼-- · 2019-04-29 19:54

I would say suck it up and write it as a Windows service. I've not found scheduled tasks to be very reliable and when it doesn't run, I have yet to find an easy way to find out why it hasn't.

查看更多
登录 后发表回答