Copied to clipboard

Flag this post as spam?

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


  • Bijesh Tank 192 posts 420 karma points
    Sep 01, 2010 @ 18:15
    Bijesh Tank
    0

    Scheduled tasks no longer running

    Hi,

    I have had Task Scheduler installed for a little while now and was working great.  Now all of a sudden it does not execute any of the scheduled tasks on any of my environments (dev, staging and live).  The only thing that I have recently done is upgrade the web.config to use integrated pipeline in IIS7.

    I've checked that the right URL is stored in the schedule URL field.  The umbracoSettings.config file looks ok and hasn't been touched.  The website is also being used constantly (all environments).

    Another strange thing is that scheduled tasks that I have setup in CMS Import no longer execute as well.

    Strange, no? Is there anything else that I should be looking out for? As mentioned, the only thing that has changed since this stopped working is the web.config. Any help appreciated.

    Thanks,

    Bij

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Sep 02, 2010 @ 09:01
    Richard Soeteman
    0

    HI Bijesh,

    Can you check the UmbracoLog table in the database and see if there is an Error? Can you execute the handler /umbraco/plugins/taskscheduler/handlers/scheduledTaskHandler.ashx?

    Cheers,

    Richard

  • Bijesh Tank 192 posts 420 karma points
    Sep 02, 2010 @ 10:32
    Bijesh Tank
    0

    Hi Richard,

    I can't see any errors in the log table and executing the handler seems fine.  I might un-install then re-install and see if that kicks things back into gear.

    Thanks,

    Bij

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Sep 02, 2010 @ 10:36
    Richard Soeteman
    0

    Before reinstall, check the scheduler settings in Umbraco.Settings file please. Do the handlers exists in the schedulersettings section?

  • Bijesh Tank 192 posts 420 karma points
    Sep 02, 2010 @ 10:54
    Bijesh Tank
    0

    Yup, I just checked the UmbrcoSettings config, and the handlers exist:

     

    <scheduledTasks>
        <task log="true" alias="CMSImportScheduler" interval="60" url="http://localhost/umbraco/plugins/CMSImport/Handlers/ScheduleTaskHandler.ashx" />
        <task log="true" alias="CMSImportScheduler" interval="60" url="http://localhost/umbraco/plugins/CMSImport/Handlers/ScheduleTaskHandler.ashx" />
        <task log="false" alias="TaskScheduler" interval="60" url="http://localhost/umbraco/plugins/TaskScheduler/handlers/ScheduledTaskHandler.ashx" />
    <scheduledTask>

    Funnily enough, I just checked my emails this morning and it seems like the CMS Import scheduled tasks started working last night.

    Although TaskScheduler looks like it hasn't kicked in. Checked the URL's to be executed and they are working fine, and time and days set correctly as well - just executing at the set times.

     

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Sep 02, 2010 @ 18:08
    Richard Soeteman
    0

    Weird,

    Can it be that a spam filter is blocking the emails? I had that myself a couple of times.

    Cheers,

    Richard

  • Bijesh Tank 192 posts 420 karma points
    Sep 02, 2010 @ 18:15
    Bijesh Tank
    0

    No i've checked that as well, on both the server and on my client machine.  Its seems like that the CMS Import task scheduler is only running intermittently now, so I'm still investigating what the cause might be.  It just seems really strange since changing to integrated pipeline in IIS7 seems to have made this go a funny.  Will see if switching back to classic mode runs as normal, but I don't see why this should affect it?

  • Kenny Burns 173 posts 305 karma points
    Jul 30, 2012 @ 15:54
    Kenny Burns
    0

    Hello,

    I had the excat same issue as posted at the start. I uninstalled and then re-instaleld the task scheduler and it seemed to start running again?

    I had done an upgrade of a couple of minor versions - could it have been related to that?

    Anyways, all good again!

    K :)

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Aug 06, 2012 @ 07:06
    Richard Soeteman
    0

    Hmm weird, should not have been related to the upgrades, what could have happened is that the app_pool recycled during an import and then the importing flag was still set to true. I'm thinking about a way to improve that for a next version.

    Thanks,

    Richard

  • Bo Kingo Damgaard 157 posts 456 karma points
    Mar 20, 2013 @ 08:41
    Bo Kingo Damgaard
    0

    This thread is a bit old, but I just experienced the same thing, but I found the error in my installation.

    When I installed it, the installer setup a task in umbracoSettings.config which pointed to my developer url. After the site went live I removed the developer url on the IIS site, and applied the live url. This makes the TaskScheduler url in umbracoSettings.config unavailable, and therefore it doesn't execute.

    /Bo

  • mmaty 113 posts 286 karma points
    Apr 22, 2013 @ 19:15
    mmaty
    0

    I have the same phenomen: After upgrading a 4.10 Site to 6.0.3 the scheduler doesn't work anymore. My code

      <scheduledTasks>
        <!-- add tasks that should be called with an interval (seconds) -->
            <task log="false" alias="scheduler" interval="60" url="http://www.myDomain.de/extensions/scheduler.aspx" />
      </scheduledTasks> 

    The scheduler.aspx link is working fine, if I browse to that link.

    Does anybody have suggestions what I can do?

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Apr 22, 2013 @ 19:19
    Richard Soeteman
    0

    It's based on the publisher from Umbraco so can you use the scheduled publisher after upgrade?

  • Anton Oosthuizen 206 posts 486 karma points
    Sep 26, 2013 @ 12:50
    Anton Oosthuizen
    0

    Hi All

    I'm having the same problem in 6.1.5

    Did you find a solution to the problem?

    Regards

  • Bijesh Tank 192 posts 420 karma points
    Sep 26, 2013 @ 13:06
    Bijesh Tank
    0

    Did you upgrade or is it a fresh install?

    The only thing I can really recommend is to uninstall and then reinstall the package, then recreate the scheduler settings.

  • Anton Oosthuizen 206 posts 486 karma points
    Sep 27, 2013 @ 13:11
    Anton Oosthuizen
    0

    Hi thanks for the reply.

    in my umbraco config I have

    <task log="true" alias="TestJob" interval="60" url="http://www.website.com/postman.aspx" />
    <task log="false" alias="TaskScheduler" interval="60" url="http://www.website.com/umbraco/plugins/TaskScheduler/handlers/ScheduledTaskHandler.ashx" />
    

    The Page that executes my emails is called postman.aspx. When executed manualy it works fine. executing http://www.website.com/umbraco/plugins/TaskScheduler/handlers/ScheduledTaskHandler.ashx works fine

    I've added testjob to check if it will execute every 60sec but it doesn't.

    The clean installation was umbraco 6 and then I upgraded to 6.1.5

    Log is set to true but I can find any reference to the job. How will I go about debugging this, for I don't have access to the server it is running on.

    Any help will be appreciated.

    Thanks

  • David Stringer 17 posts 38 karma points
    Oct 16, 2013 @ 02:23
    David Stringer
    0

    Anyone else have this issue? I have.. after upgrade from 4 to 6....

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Oct 16, 2013 @ 06:58
    Richard Soeteman
    0

    Hi David,

    I assume the scheduledtasks settings in the file /config/umbracosettings.config didn't get migrated after the upgrade, can you check that?

    Cheers,

    Richard

  • David Stringer 17 posts 38 karma points
    Oct 16, 2013 @ 11:33
    David Stringer
    0

    That would be nice... but no, the scheduled tasks are all there as before.

    The task does in fact run on startup, just never again!

     

    <scheduledTasks>

        <!-- add tasks that should be called with an interval (seconds) -->

        <!--    <task log="true" alias="test60" interval="60" url="http://localhost/umbraco/test.aspx"/>-->

        <task log="true" alias="sendEmailsInQueue" interval="540" url="http://www.idoinventories.com/process-email-queue/"/>

      </scheduledTasks>

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Oct 16, 2013 @ 11:37
    Richard Soeteman
    0

    Hmm I think Umbraco V6 has some issues with the scheduler then. I've seen some posts regarding Scheduled publish as well.

    I've chosen a different approach for scheduling in SEO Checker, need to find some time to port that to this package also. then the scheduler of Umbraco is no longer needed.

    Sorry for now.

  • David Stringer 17 posts 38 karma points
    Oct 16, 2013 @ 11:44
    David Stringer
    0

    I was going to try a totally fresh install with db etc to see if it was causing the problem, but if its a bug....

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Oct 16, 2013 @ 11:50
    Richard Soeteman
    0

    I think it is. It should just work, like in V4.

Please Sign in or register to post replies

Write your reply to:

Draft