Resets timer when website application pool is reset
Hi,
This package sounds great!! But just a quick question. If the application pool of the website is reset or the website isnt visited that much and the IIS reset the application pool is the scheduled task timer also reset og the tasks only runs if the application pool is running?
The scheduler only runs when the site runs, so when the site isn't visited that much, the application pool shuts down and the scheduled task isn't running. However Umbraco keeps itself alive using a keealive.aspx page that gets called every minute. When I was developing the scheduled task feature for CMSImport PRO, I had scheduled an rss import that executed every hour an every hour I got the email that the import was finished, so I think it's stable enough. My site only has a few visitors a day and that's enough to keep the scheduled task running.
@Alex, Yes you can do that, in fact Umbraco does that internally using the scheduled publishing mechanism, however sometimes a server gets rebooted and then the website needs a manual ping to get started. I'm so looking forward to .net 4.0 that can start websites automatically.
Resets timer when website application pool is reset
Hi,
This package sounds great!! But just a quick question. If the application pool of the website is reset or the website isnt visited that much and the IIS reset the application pool is the scheduled task timer also reset og the tasks only runs if the application pool is running?
Hi,
The scheduler only runs when the site runs, so when the site isn't visited that much, the application pool shuts down and the scheduled task isn't running. However Umbraco keeps itself alive using a keealive.aspx page that gets called every minute. When I was developing the scheduled task feature for CMSImport PRO, I had scheduled an rss import that executed every hour an every hour I got the email that the import was finished, so I think it's stable enough. My site only has a few visitors a day and that's enough to keep the scheduled task running.
Cheers,
Richard
You can of course also schedule your homepage to be visited every 5 minutes which will likely keep the app-pool alive on low-traffic sites :)
@Alex, Yes you can do that, in fact Umbraco does that internally using the scheduled publishing mechanism, however sometimes a server gets rebooted and then the website needs a manual ping to get started. I'm so looking forward to .net 4.0 that can start websites automatically.
Cheers,
Richard
I always use the Task Scheduler within Windows to get around the 'recycle app pool' problem.
Made a 'vbs' file with the following content to open a url as task:
We do a hard reset of the application pool every night. Should this cause any problems if I want to use the TaskScheduler?
Hi Jeroen,
Not if you website is pinged afterwards (so the application poll starts again).
Cheers,
Richard
is working on a reply...