| | |
CF Scheduler
Please support our ColdFusion advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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. :-)
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
![]() |
Similar Threads
- whats this " power reg scheduler" (Viruses, Spyware and other Nasties)
- Round Robin Scheduler (C)
Other Threads in the ColdFusion Forum
- Previous Thread: encrypt function
- Next Thread: Help
| Thread Tools | Search this Thread |





