Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
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.
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:
Call LogEntry()Sub LogEntry() 'Force the script to finish on an error. On Error Resume Next 'Declare variables Dim objRequest Dim URL Set objRequest = CreateObject("Microsoft.XMLHTTP") 'Put together the URL link appending the Variables. URL = "http://someurl.com/some-path" 'Open the HTTP request and pass the URL to the objRequest object objRequest.open "POST", URL , false 'Send the HTML Request objRequest.Send 'Set the object to nothing Set objRequest = NothingEnd Sub
We do a hard reset of the application pool every night. Should this cause any problems if I want to use the TaskScheduler?
Not if you website is pinged afterwards (so the application poll starts again).
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted