Quartz.NET scheduler doesn't fire jobs/triggers once deployed

前端 未结 4 546
感情败类
感情败类 2020-12-01 11:50

INTRODUCTION

I\'m using Quartz.Net on an ASP.Net framework 4, webforms web site. Basically, the user should have the hability to fire manually a

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-01 12:15

    There are nothing wrong with Quartz, all because of IIS app pool recycling. I fixed the bug by stopping the pool that is used for Quartz from recycling:
    1. Go to IIS manager -> Application Pools -> Create a new pool, I named it Scheduler (u can named anything)
    2. Select Scheduler pool -> advanced Settings
    + In General section, at Start Mode, Select AlwaysRunning (IIS 8.5) or true for (IIS 7.5, 8)
    + In Process Model Section-> Idle Timeout(minutes) set to 0 (meaning: No Idel timeout)
    + In Recycling section -> Regular time Interval set to 0 (meaning: no recycling)
    3. Deploy your Quartz site into that application pool. And send one request to the pool to "wake your app up" and it will run until u stop it.
    That's it.
    Updated: Another solution to keep your app pool always alive is using Auto-Start ASP.NET Applications

提交回复
热议问题