Search code examples
asp.net-web-apiquartz-schedulerquartz.netquartz

WebAPI 2 Quartz CornSchedule not working


I am trying to schedule a task from api call to send an email. I am following their quick start guide but can't get it working.

Can anyone see what am I doing wrong? here's my code

Thanks


Solution

  • First off, your CRON is wrong. To schedule something to run every 3 mins it should be

    0 */3 * ? * *

    Try the new cron and see whether it works as expected. If not post the console logs. Also print exception as well.