I've read old posts on this but I've added some Scheduled Tasks tasks in to our 7.1.6 build of Umbraco but they aren't starting or running, there's nothing in the logs and when I go to the url as defined in the config on the servers themselves the code runs fine? Any help or ideas?
The services run on 2 load balanced web servers on both point to the local IP of the ashx, I have checked and both run as expected if on the server and calling from a browser. Here is the task
Is the intention that the service should be hit every 1 second? Don't know if it's because the interval is too low that nothing ever happens. Does it make any difference if you set it to 60 seconds?
Otherwise it might be something with the load balancing...I'm not to familiar with that though.
Sorry that was a mistake, I set it to 2 minutes both still nothing. I've used scheduled tasks with load balancing before and it should be working as expected :-( Thank tho
Ok, not sure whether it may be a bug or not. But hopefully some of the other bright minds in here have an idea. Perhaps as an alternative you could use the windows task scheduler instead?
Maybe you could try making a fresh install on Umbraco 7.1.8 and see if it works in that version...simply to figure out if it's a bug with Umbraco or perhaps something in the setup?
Scheduled Tasks
I've read old posts on this but I've added some Scheduled Tasks tasks in to our 7.1.6 build of Umbraco but they aren't starting or running, there's nothing in the logs and when I go to the url as defined in the config on the servers themselves the code runs fine? Any help or ideas?
Hi Scott
What does your configuration in umbracoSettings.config look like?
/Jan
The services run on 2 load balanced web servers on both point to the local IP of the ashx, I have checked and both run as expected if on the server and calling from a browser. Here is the task
<task log="true" alias="CacheUpdater" interval="1" url="http://172.22.1.228/umbraco/Webservices/CacheUpdater.ashx" />
Hi Scott
Is the intention that the service should be hit every 1 second? Don't know if it's because the interval is too low that nothing ever happens. Does it make any difference if you set it to 60 seconds?
Otherwise it might be something with the load balancing...I'm not to familiar with that though.
/Jan
Sorry that was a mistake, I set it to 2 minutes both still nothing. I've used scheduled tasks with load balancing before and it should be working as expected :-( Thank tho
Hi Scott
Ok, not sure whether it may be a bug or not. But hopefully some of the other bright minds in here have an idea. Perhaps as an alternative you could use the windows task scheduler instead?
Maybe you could try making a fresh install on Umbraco 7.1.8 and see if it works in that version...simply to figure out if it's a bug with Umbraco or perhaps something in the setup?
/Jan
is working on a reply...