title: Quartz scheduler not executing job after app pool recycle (.Net)
body: <p>We have an intranet application hosted on IIS 8.0. </p>
  
  <p>We have some web methods available which needs to be executed at certain time.</p>
  
  <p>So, we have used the Quartz scheduler to schedule the job for executing web methods. In Application_Start event of global.asax, we have written the code to start the scheduler.</p>
  
  <p>To keep the scheduler up and running the Application Pool should be in running mode always, so we have set the property startMode=“AlwaysRunning” and also, application should be started so we have set the application property preloadEnabled=“True”.</p>
  
  <p>We are recycling the application pool at every 1740 minutes (29 Hours, the default time).</p>
  
  <p>Here the question is:</p>
  
  <p>If I have a job scheduled at 3:00 AM in the morning. My app pool is in running state. </p>
  
  <p>I have browsed the application at 6:00 PM on one day before of schedule time. </p>
  
  <p>As per the recycling time my app pool has been recycled at 2:00 AM and till 3:00 AM my application was not pinged but my app pool was in running state. </p>
  
  <p>When Application Pool is recycled, the application pool will be started again (because of the property startMode=“AlwaysRunning”) but the process id if that worker process would be different.</p>
  
  <p>Due to the recycle of app pool quartz had not executed the job as per the schedule. If I browse the application after recycling of app pool, then quartz will execute the job as per the schedule.</p>
  
  <p>Can anyone help me on this at the earliest?</p>
  
  <p>Thanks in anticipation.</p>