Quartz.NET vs Windows Scheduled Tasks. How different are they?

后端 未结 4 1379
遥遥无期
遥遥无期 2020-12-09 08:43

I\'m looking for some comparison between Quartz.NET and Windows Scheduled Tasks?

How different are they? What are the pros and cons of each one? How do I choose whic

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-09 09:14

    One important distinction, for me, that is not included in the other answers is what gets executed by the scheduler.

    Windows Task Scheduler can only run executable programs and scripts. The code written for use within Quartz can directly interact with your project's .NET components.

    With Task Scheduler, you'll have to write a shell executable or script. Inside of that shell, you can interact with your project's components. While writing this shell code is not a difficult process, you do have to consider deploying the extra files.

    If you anticipate adding more scheduled tasks over the lifetime of the project, you may end up needing to create additional executable shells or script files, which requires updates to the deployment process. With Quartz, you don't need these files, which reduces the total effort needed to create and deploy additional tasks.

提交回复
热议问题