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

前端 未结 4 565
感情败类
感情败类 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:16

    I just ran into a similar issue that might bite someone else - it brought me to this SO question after turning on debug and getting that 'batch acquisition of 0 triggers' message.
    I had a job that was every 2 hours like this:

    "0 0 0/2 * * ?"
    

    And I wanted to make it more often, so every 2 minutes like this:

    "0 0/2 0 * ?"
    

    I even tried https://cronexpressiondescriptor.azurewebsites.net/ which gave me a big clue I should have read more carefully: Every 2 hours, on day 0 of the month which eventually made me realize what I really meant was:

    "0 0/2 * * ?"
    

    So the lesson was, when 'shifting left' your cron, back-fill with *, not 0.

    Hope that helps someone else.

提交回复
热议问题