Board index » delphi » Delphi Scheduler
Thomas Bresson
Delphi Developer |
Delphi Scheduler2004-08-10 07:37:51 PM delphi222 I'm trying to create a scheduler in Delphi. Although I have a tons of problems, one distinct problem comes to mind, which is this: Let's assume, that you decide the time for the job to run, let's say at 03:00. Now when creating the job you don't know if the user that created this is gonna change it to something else, or how often it is to run, so the main question then becomes; How do you know if your job actually have run or not? Of course I created a variable in the database to mark the job active, but in some cases the job takes less than 1 minute to complete and then it's marked inactive again, the time is still 15:00 and the timer that checks for new jobs run every 10 seconds. This could make the job run for more than a few times pr. minute. I guess to easiest way out is just to check for new jobs every minute instead, but I was wondering if there were somebody out there who might have experience in schedule-programming, who has something smart on his mind I didn't think of. |