RSS Forums RSS
Please support our ColdFusion advertiser: Programming Forums
Views: 3075 | Replies: 1
Reply
Join Date: Jun 2003
Location: Malaysia
Posts: 313
Reputation: red_evolve is on a distinguished road 
Rep Power: 6
Solved Threads: 0
red_evolve's Avatar
red_evolve red_evolve is offline Offline
Posting Whiz

CF Scheduler

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2006
Posts: 27
Reputation: anuradhu is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 1
anuradhu anuradhu is offline Offline
Light Poster

Re: CF Scheduler

  #2  
Apr 19th, 2006
try using the cfscheduler tag.....after your event gets completed....
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 3:24 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC