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 2560 posts 8256 karma points
    Apr 05, 2010 @ 11:21
    Anders Burla
    0

    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?

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Apr 05, 2010 @ 14:10
    Richard Soeteman
    0

    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

  • Alex Norcliffe 222 posts 287 karma points
    Apr 06, 2010 @ 07:57
    Alex Norcliffe
    1

    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 4046 posts 12899 karma points MVP 2x
    Apr 06, 2010 @ 12:34
    Richard Soeteman
    0

    @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

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Apr 07, 2010 @ 16:02
    Stefan Kip
    0

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

    End Sub
  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Apr 27, 2010 @ 10:14
    Jeroen Breuer
    0

    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 4046 posts 12899 karma points MVP 2x
    Apr 27, 2010 @ 12:31
    Richard Soeteman
    0

    Hi Jeroen,

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

    Cheers,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft