DotNetNuke provides a robust framework for scheduled tasks. Some tasks are already scheduled by DotNetNuke installation and you can also add your own custom tasks to the DotNetNuke schedule.
DotNetNuke schedule is accessible from the Host -> Schedule screen. This screen lists all of the scheduled tasks also called schedule item. You can see status, history and properties of each schedule item.
You can find more details about DotNetNuke Scheduler in this PDF document.
You can find more details about creating a DotNetNuke schedule item in following posts:
- http://dnnuke.blogspot.com/2010/07/not-tutorial-creating-my-first-dnn.html
- http://kemmis.info/blog/archive/2008/03/08/how-to-write-a-custom-dotnetnuke-schedulerclient-i.e.-a-scheduled.aspx
The first step in creating a Schedule Item is to create a DotNet Assembly that will contain the logic to execute the scheduled task. Your class for task execution should inherit from DotNetNuke.Services.Scheduling.SchedulerClient. Once the Assembly is ready, you can create a new Schedule Item by going to Host -> Schedule -> Add Item to Schedule.
One thought on “Schedule a Task in DNN”