[Opensource] Re: Cron Jobs

BSC bsci at lycos.com
Sat May 3 22:27:11 PDT 2003


Mike,

...remembered something else...

I had problems with 'recurring' 'multi-threaded' cron jobs.  If I recall there was an anonymous inner class that would try to start() the thread on the 2nd 'recurrence' of the job but Java raises an exception when attempting this on a dead thread.  I believe the code was trapping that exception and just ignoring it!  I made a weak attempt at fixing this by creating new instances of the job/thread but ran into some problems so I went with non-recurring multi-threaded jobs and had added multiple entries in the JobQueue table.  If you go this route watch for the MaxJobs limit because it counts jobs scheduled in the future as part of that limit!
I believe I also tried the single-threaded recurring route but some problems with poor thread-usage caused me to stick with the multi-threaded non-recurring jobs.

---
Aime






____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005



More information about the Opensource mailing list