none
Quartz scheduler not working on cloud service

    General discussion

  • I had deployed a cloud service in which i has use Quartz scheduler to run a particular task at a particular time (3:00 AM).

    But the service does not run the scheduler at that time.

    I had debugged it but not able to get the exact solution. 

    If i deploy the app to local iis and check, it runs fine with the scheduler.

    Does the cloud service recycles every 24 hrs, because Quartz scheduler will only hit if the app is running and ping after recycling.
    Recycling happens in iis every 24 hrs so we need to hit the app manually for the scheduler to work.

    so can you please assist me to get the issue why my scheduler is not working 

    (Is it because of recycling ?)

    Wednesday, June 24, 2015 7:48 AM

All replies

  • On Azure, it's best to set up a worker role process for scheduling. Here's an implementation with Quartz.net

    http://mattrandle.me/azure-worker-role-and-quartz-net/

    Wednesday, June 24, 2015 7:57 AM
  • Thanks Warren for the link.

    In my code i have a web api MVC project and in that i have the scheduler. 

    Added a web role of this project and deployed the app.


     
    Wednesday, June 24, 2015 8:37 AM