Services Products About Us Case Studies Clients
Modern Signal
Modern Signal Home Page
Lighthouse on beach About Us
Offering a full range of development services: strategy, design, application programming, database development
News & Recents Projects
Lighthouse 3.0 Tasks Manager

Lighthouse 3.0 introduces a new task manager that makes setting up and managing scheduled tasks for a website easier and more flexible.

The way it works is that Lighthouse automatically creates a master task in the ColdFusion administrator that runs every 5 minutes.  Whenever this master task runs, it looks for tasks in Lighthouse that are due to run and runs them.  One advantage of this is that no matter how many tasks are set up for a site, there is only one entry in the ColdFusion admin -- which makes managing multiple sites on the same server easier.  More importantly, it allows for more flexible and robust scheduling options than would otherwise be available.

The Lighthouse Task Manager is relatively simple.  Here is the screen to add a task:


Rather than set a url for the task, you must provide a cfc method to run for the task.  So you need to put your task code in a CFC method that is set to access="remote".  You would then specify the method as "cfc.MyCFC.MyMethod".

You can then specify the interval for the method, any prerequisites (other daily tasks that must be run before the current task is run), and the window of time during which the task should be run.

Most of these options are available in the ColdFusion task manager, but the option to set a prerequisite for a task is an important addition.  This allows you to set up any number of tasks to run at a particular time in the morning, and ensure that they will all run in the correct order, and also ensure that if a task fails, other tasks that depend on it are not run.

The task manager also keeps a log of every time a task is run.  The task method should return a string, which will be logged.  If the task produces an error, the task run will be recorded as unsuccessful, and the error message will be logged.  To log custom error messages, you will want to catch any errors and throw a custom error with the appropriate message.

The task manager is pretty new at this point, and hasn't gone through any trials by fire yet, but I'll be interested to see how it is used as more sites adopt Lighthouse 3.0.

Comments

Leave a Comment
Name (required):
Email (required, will not be displayed):
Website:
Subscribe to this page:

Topics for this page:

June 28, 2010 -- Modern Signal launches redeveloped website for National Health Policy Forum, a nonpartisan research and public policy organization at The George Washington University. The new site includes admin tools to manage email announcements, event invitations and RSVPs, surveys, and an extensive library of publications and meeting materials. The site also features a customized Google Search integration, and a new content management system was integrated within the existing design and information architecture of the site.   -View-
April 22, 2010 -- Modern Signal launches a redesigned website for The NALP Foundation for Law Career Research and Education, a nonprofit organization that works to ensure that the legal community and society at large have a reliable, objective, and affordable source of information.The site includes a content management system; bookstore; and news, events, leadership, and products tools to manage the featured homepage content. -View-
April 5, 2010 --
A redesigned website is launched for Independent Sector, a nonprofit coalition of approximately 600 charities, foundations, and corporate philanthropy programs, collectively representing tens of thousands of charitable groups in every state across the nation. The site includes a content management system, discussion forum integration (phpBB), blog integration (MangoBlog), collaborative authoring wiki, tool to create surveys, video template, among other features.  -View-