As soon as Rafal checks in security service code, I will check in my change to
the scheduler and related code which will allow for the scheduler to run every
x number of seconds.
I would like to also make another change to the scheduler as follows:
I want the scheduler to only run a job if it is not already running. So that
if job A is scheduled to run every 10 seconds and the sceduler begins job A and
it actually takes 15 seconds to run, the scheduler will not run job A again
until it has completed its first cycle.
I would do this by adding a boolean to the JobEntry that indicates if the job
is currently active or not. I would then add something like this to the
WorkerThread class:
if (! je.isActive())
{
je.setActiveOn();
ScheduledJobLoader.getInstance().exec(je,je.getTask());
je.setActiveOff();
}
Any problems with this?
John
--
********************************
** John Thorhauer
** [EMAIL PROTECTED]
** take a look at:
** http://tambora.zenplex.org
** http://www.zenplex.org
** http://www.zenplex.com
********************************
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]