CF Scheduler

Reply

Join Date: Jun 2003
Posts: 313
Reputation: red_evolve is on a distinguished road 
Solved Threads: 0
red_evolve's Avatar
red_evolve red_evolve is offline Offline
Posting Whiz

CF Scheduler

 
0
  #1
Jul 19th, 2005
Hi. Say, I have a cf file which accepts real-time event and store the events in the same table with status "not sent".

I have scheduled a task to run at every 5 minutes to check if there is any record in a table in the Database which has status = "not sent". After processing each event, it will update the status to "sent". With that configuration, my task will only check and update appropriately every 5 minutes.

How can I make it such that, whenever there is a http request to my system, after the first form inserts a record into the database with status "not sent", it checks if the scheduler is running. If it's not running, it will invoke the scheduled task. Else, it will wait for the scheduler to finish running and immediately call it to serve the current event.

I hope I conveyed my message well enough. :-)
"Study the past if you would define the future" - Confucius
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 28
Reputation: anuradhu is an unknown quantity at this point 
Solved Threads: 2
anuradhu anuradhu is offline Offline
Light Poster

Re: CF Scheduler

 
0
  #2
Apr 19th, 2006
try using the cfscheduler tag.....after your event gets completed....
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ColdFusion Forum


Views: 3487 | Replies: 1
Thread Tools Search this Thread



Tag cloud for ColdFusion
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC