Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Anders Burla Johansen 2560 posts 8256 karma points
    Apr 05, 2010 @ 11:21
    Anders Burla Johansen

    Resets timer when website application pool is reset


    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?

  • Richard Soeteman 3968 posts 12470 karma points MVP
    Apr 05, 2010 @ 14:10
    Richard Soeteman


    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 Norcliffe 222 posts 287 karma points
    Apr 06, 2010 @ 07:57
    Alex Norcliffe

    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 :)


  • Richard Soeteman 3968 posts 12470 karma points MVP
    Apr 06, 2010 @ 12:34
    Richard Soeteman

    @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.



  • Stefan Kip 1613 posts 4130 karma points c-trib
    Apr 07, 2010 @ 16:02
    Stefan Kip

    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 = ""

            'Open the HTTP request and pass the URL to the objRequest object
   "POST", URL , false

            'Send the HTML Request

            'Set the object to nothing
            Set objRequest = Nothing

    End Sub
  • Jeroen Breuer 4866 posts 12165 karma points MVP 3x admin c-trib
    Apr 27, 2010 @ 10:14
    Jeroen Breuer

    We do a hard reset of the application pool every night. Should this cause any problems if I want to use the TaskScheduler?

  • Richard Soeteman 3968 posts 12470 karma points MVP
    Apr 27, 2010 @ 12:31
    Richard Soeteman

    Hi Jeroen,

    Not if you website is pinged afterwards (so the application poll starts again).



Please Sign in or register to post replies

Write your reply to: