2
Answers

Timer to check database?

Brett Barney

Brett Barney

17y
2.3k
1
I have a program that checks a database for pending orders.  If there are no pending orders when the program starts, the program won't do anything because it needs the pending orders to process them.  I need to be able to  re-check the database at a specific time interval (10 minutes) to see if any orders have become "pending".  If the program finds pending orders, it needs to execute methods using the returned pending orders.  Would the best way to accomplish this be a timer?  If so, how would it be set up?  If not a timer, what else would accomplish this?

Thank you in advance for your help.
Answers (2)