944,099 Members | Top Members by Rank

Ad:
  • ColdFusion Discussion Thread
  • Unsolved
  • Views: 3703
  • ColdFusion RSS
Jul 19th, 2005
0

CF Scheduler

Expand Post »
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. :-)
Similar Threads
Reputation Points: 53
Solved Threads: 1
Posting Whiz
red_evolve is offline Offline
313 posts
since Jun 2003
Apr 19th, 2006
0

Re: CF Scheduler

try using the cfscheduler tag.....after your event gets completed....
Reputation Points: 12
Solved Threads: 2
Light Poster
anuradhu is offline Offline
28 posts
since Apr 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ColdFusion Forum Timeline: sending encrypted emails
Next Thread in ColdFusion Forum Timeline: Help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC