Can any one help me how can i create a schedule task in umbraco.
I have an rss feed which display the feeds in my page, As the Rss feed is of big size i am caching the RSS feed in my Local page and display the information from the cache instead of getting from the server. The caching solution is working fine.
Now i want to create a schedule task in umbraco and need to retrive the information from the RSS feed for every 1 hr.
I have created the following task in the umbracosettings.config file
Is the 180 seconds just for testing as 1hr has 1800 seconds? Also when you go live you will have to update that url to your actual website url other than that you have setup scheduled task correctly.
Its just for testing purpose i set the interval to 180 seconds. while going live wil update the correct url.Can you suggest me how i can test my application whether the scheduled task is getting the information at regular intervals.
It sounds like it's running according to the log - are you just wanting a way to get it's output now? I usually use Richard's TaskScheduler package which gives you a GUI to configure the task and also has the ability to email you the output it receives from the URL.
Creating a Scheduler task
Hi All,
Can any one help me how can i create a schedule task in umbraco.
I have an rss feed which display the feeds in my page, As the Rss feed is of big size i am caching the RSS feed in my Local page and display the information from the cache instead of getting from the server. The caching solution is working fine.
Now i want to create a schedule task in umbraco and need to retrive the information from the RSS feed for every 1 hr.
I have created the following task in the umbracosettings.config file
<task log="true" alias="RssFeedCache" interval="180" url="http://mylocalhost/abc.aspx/rssFeed"/>
when i check the Umbraco log table the schedule task is being started for every 180 seconds.(RssFeedCache has been called with response: True)
but i am not sure whether am i on the rght track or not.
Can any one help me how i can i acheive this
Thanks
Bobby
Bobby,
Is the 180 seconds just for testing as 1hr has 1800 seconds? Also when you go live you will have to update that url to your actual website url other than that you have setup scheduled task correctly.
Regards
Ismail
Hi Ismail,
Its just for testing purpose i set the interval to 180 seconds. while going live wil update the correct url.Can you suggest me how i can test my application whether the scheduled task is getting the information at regular intervals.
Thanks,
Bobby
It sounds like it's running according to the log - are you just wanting a way to get it's output now? I usually use Richard's TaskScheduler package which gives you a GUI to configure the task and also has the ability to email you the output it receives from the URL.
Hi,
you can add some logging to your source at start and end:
i recently wrote a little tutorial about schedule tasks, check it out and maybe it will help you to undertand better how it works. https://www.metamatrix.se/aktuellt/building-an-umbraco-schedule-task/
is working on a reply...