Windows Server 2003

5 views
Skip to first unread message

Miquel Frances

unread,
Oct 20, 2008, 7:05:54 AM10/20/08
to Quartz.NET
Hello.

I have an strange behaviour with quartz, when i try to stop the
scheduler, in my development enviroment windows xp, all the threads
show as stopped and finish successfully, but now in Windows server
2003, all the threads shows as finish, but periodically one thread is
still executing, i stopped the site with IIS, but still execute... its
something wraith!!

any ideas?

Marko Lahma

unread,
Oct 21, 2008, 8:33:18 AM10/21/08
to quar...@googlegroups.com
Hi,

Please give some more details:

* Which version of Quartz.NET?
* Are you running IIS on XP or development server (Cassini)?
* How are you monitoring these thread states?

-Marko

Miquel Frances

unread,
Oct 24, 2008, 6:38:04 AM10/24/08
to Quartz.NET
Hello Marko.

Sorry for my delay in response, but i have been doing some tests to
see whats happening:

Quarzt version is the lastest one: Quartz.NET 1.0 RC 3 in both
enviroments
Windows Server 2003 Standard Edition Service Pack 2, development
enviroment is Windows XP Professional S.P 2
I'm logging the application using a log file, i send you exemples:

public void InitScheduler()
{
ILog log = LogManager.GetLogger(typeof(ScheduleTasks));

log.Info("------- Starting Scheduling
-------------------");
ISchedulerFactory schedFact = new StdSchedulerFactory();
IScheduler sched = schedFact.GetScheduler();
sched.Start();
log.Info("------- Scheduling Started
-------------------");
}

public void StopScheduler()
{
ILog log = LogManager.GetLogger(typeof(ScheduleTasks));

log.Info("------- Shutdown Scheduling
-------------------");
ISchedulerFactory schedFact = new StdSchedulerFactory();
IScheduler sched = schedFact.GetScheduler();
sched.Shutdown();
log.Info("------- Scheduling Stopped
-------------------");
}


// Order process execution function
public class ScheduleGetOrders : IStatefulJob
{
private static ILog log =
LogManager.GetLogger(typeof(ScheduleGetOrders));

public void Execute(JobExecutionContext context)
{
log.Info("------- Starting Order batch process
-------------------");
Order ord = new Order();
ord.ProcessOrders();
log.Info("------- Ending Order batch process
-------------------");
// Indicamos la proxima ejecucion
JobDataMap data = context.JobDetail.JobDataMap;
data.Put(EDIConst.EXECUTION_COUNT,
data.GetInt(EDIConst.EXECUTION_COUNT) + 1);
log.Info(string.Format("{0} next scheduled to run at:
{1}", context.JobDetail.FullName,
context.NextFireTimeUtc.Value.ToLocalTime()));
}
}


// And Exemple of Log its long...., but if you look at beggining the
Order batch process is executing each 2 minutes, in one moment I
stopped the scheduler using the function StopScheduler, and the
threads seems to stop sucessfully, but if you look next execution is
in the scheduling time as programmed... (in my develop enviroment is
not fired anytime...)

2008-10-17 14:21:12,836 [1] INFO EDIProcess.Scheduling.ScheduleTasks
- ------- Scheduling Started -------------------
2008-10-17 14:22:00,010 [EDIScheduler_QuartzSchedulerThread] DEBUG
Quartz.Simpl.SimpleJobFactory - Producing instance of Job
'EDIGroup.GetOrders', class=EDIProcess.Scheduling.ScheduleGetOrders
2008-10-17 14:22:00,025 [EDIScheduler_Worker-1] DEBUG
Quartz.Core.JobRunShell - Calling Execute on job EDIGroup.GetOrders
2008-10-17 14:22:00,025 [EDIScheduler_Worker-1] INFO
EDIProcess.Scheduling.ScheduleGetOrders - ------- Starting Order batch
process -------------------
2008-10-17 14:22:00,244 [EDIScheduler_Worker-1] INFO
EDIProcess.Scheduling.ScheduleGetOrders - ------- Ending Order batch
process -------------------
2008-10-17 14:22:00,244 [EDIScheduler_Worker-1] INFO
EDIProcess.Scheduling.ScheduleGetOrders - EDIGroup.GetOrders next
scheduled to run at: 17/10/2008 14:24:00
2008-10-17 14:22:00,244 [EDIScheduler_Worker-1] DEBUG
Quartz.Core.JobRunShell - Trigger instruction : NoInstruction
2008-10-17 14:24:00,001 [EDIScheduler_QuartzSchedulerThread] DEBUG
Quartz.Simpl.SimpleJobFactory - Producing instance of Job
'EDIGroup.GetOrders', class=EDIProcess.Scheduling.ScheduleGetOrders
2008-10-17 14:24:00,001 [EDIScheduler_Worker-2] DEBUG
Quartz.Core.JobRunShell - Calling Execute on job EDIGroup.GetOrders
2008-10-17 14:24:00,001 [EDIScheduler_Worker-2] INFO
EDIProcess.Scheduling.ScheduleGetOrders - ------- Starting Order batch
process -------------------
2008-10-17 14:24:00,032 [EDIScheduler_Worker-2] INFO
EDIProcess.Scheduling.ScheduleGetOrders - ------- Ending Order batch
process -------------------
2008-10-17 14:24:00,032 [EDIScheduler_Worker-2] INFO
EDIProcess.Scheduling.ScheduleGetOrders - EDIGroup.GetOrders next
scheduled to run at: 17/10/2008 14:26:00
2008-10-17 14:24:00,032 [EDIScheduler_Worker-2] DEBUG
Quartz.Core.JobRunShell - Trigger instruction : NoInstruction
2008-10-17 14:24:41,362 [1] INFO EDIProcess.Scheduling.ScheduleTasks
- ------- Shutdown Scheduling -------------------
2008-10-17 14:24:41,440 [1] INFO Quartz.Core.SchedulerSignalerImpl -
Initialized Scheduler Signaller of type:
Quartz.Core.SchedulerSignalerImpl
2008-10-17 14:24:41,440 [1] INFO Quartz.Core.QuartzScheduler - Quartz
Scheduler v.1.0.0.3 created.
2008-10-17 14:24:41,440 [1] INFO Quartz.Simpl.RAMJobStore -
RAMJobStore initialized.
2008-10-17 14:24:41,440 [1] INFO Quartz.Impl.StdSchedulerFactory -
Quartz scheduler 'EDIScheduler' initialized
2008-10-17 14:24:41,440 [1] INFO Quartz.Impl.StdSchedulerFactory -
Quartz scheduler version: 1.0.0.3
2008-10-17 14:24:41,440 [1] INFO Quartz.Core.QuartzScheduler -
Scheduler EDIScheduler_$_NON_CLUSTERED shutting down.
2008-10-17 14:24:41,440 [1] INFO Quartz.Core.QuartzScheduler -
Scheduler EDIScheduler_$_NON_CLUSTERED paused.
2008-10-17 14:24:41,440 [1] INFO Quartz.Core.QuartzScheduler -
Scheduler EDIScheduler_$_NON_CLUSTERED Shutdown complete.
2008-10-17 14:24:41,440 [1] INFO EDIProcess.Scheduling.ScheduleTasks
- ------- Scheduling Stopped -------------------
2008-10-17 14:24:41,690 [1] INFO Quartz.Core.SchedulerSignalerImpl -
Initialized Scheduler Signaller of type:
Quartz.Core.SchedulerSignalerImpl
2008-10-17 14:24:41,690 [1] INFO Quartz.Core.QuartzScheduler - Quartz
Scheduler v.1.0.0.3 created.
2008-10-17 14:24:41,690 [1] INFO Quartz.Simpl.RAMJobStore -
RAMJobStore initialized.
2008-10-17 14:24:41,690 [1] INFO Quartz.Impl.StdSchedulerFactory -
Quartz scheduler 'EDIScheduler' initialized
2008-10-17 14:24:41,690 [1] INFO Quartz.Impl.StdSchedulerFactory -
Quartz scheduler version: 1.0.0.3
2008-10-17 14:24:41,925 [EDIScheduler_Worker-6] DEBUG
Quartz.Simpl.SimpleThreadPool - WorkerThread is shutting down
2008-10-17 14:24:41,925 [EDIScheduler_Worker-9] DEBUG
Quartz.Simpl.SimpleThreadPool - WorkerThread is shutting down
2008-10-17 14:24:41,925 [EDIScheduler_Worker-3] DEBUG
Quartz.Simpl.SimpleThreadPool - WorkerThread is shutting down
2008-10-17 14:24:41,925 [EDIScheduler_Worker-7] DEBUG
Quartz.Simpl.SimpleThreadPool - WorkerThread is shutting down
2008-10-17 14:24:41,925 [EDIScheduler_Worker-1] DEBUG
Quartz.Simpl.SimpleThreadPool - WorkerThread is shutting down
2008-10-17 14:24:41,925 [EDIScheduler_Worker-2] DEBUG
Quartz.Simpl.SimpleThreadPool - WorkerThread is shutting down
2008-10-17 14:24:41,925 [EDIScheduler_Worker-10] DEBUG
Quartz.Simpl.SimpleThreadPool - WorkerThread is shutting down
2008-10-17 14:24:41,925 [EDIScheduler_Worker-4] DEBUG
Quartz.Simpl.SimpleThreadPool - WorkerThread is shutting down
2008-10-17 14:24:41,925 [EDIScheduler_Worker-8] DEBUG
Quartz.Simpl.SimpleThreadPool - WorkerThread is shutting down
2008-10-17 14:24:41,925 [EDIScheduler_Worker-5] DEBUG
Quartz.Simpl.SimpleThreadPool - WorkerThread is shutting down
2008-10-17 14:26:00,007 [EDIScheduler_QuartzSchedulerThread] DEBUG
Quartz.Simpl.SimpleJobFactory - Producing instance of Job
'EDIGroup.GetOrders', class=EDIProcess.Scheduling.ScheduleGetOrders
2008-10-17 14:26:00,007 [EDIScheduler_Worker-3] DEBUG
Quartz.Core.JobRunShell - Calling Execute on job EDIGroup.GetOrders
2008-10-17 14:26:00,007 [EDIScheduler_Worker-3] INFO
EDIProcess.Scheduling.ScheduleGetOrders - ------- Starting Order batch
process -------------------
2008-10-17 14:26:00,086 [EDIScheduler_Worker-3] INFO
EDIProcess.Scheduling.ScheduleGetOrders - ------- Ending Order batch
process -------------------
2008-10-17 14:26:00,086 [EDIScheduler_Worker-3] INFO
EDIProcess.Scheduling.ScheduleGetOrders - EDIGroup.GetOrders next
scheduled to run at: 17/10/2008 14:28:00
2008-10-17 14:26:00,086 [EDIScheduler_Worker-3] DEBUG
Quartz.Core.JobRunShell - Trigger instruction : NoInstruction
2008-10-17 14:28:00,014 [EDIScheduler_QuartzSchedulerThread] DEBUG
Quartz.Simpl.SimpleJobFactory - Producing instance of Job
'EDIGroup.GetOrders', class=EDIProcess.Scheduling.ScheduleGetOrders
2008-10-17 14:28:00,014 [EDIScheduler_Worker-4] DEBUG
Quartz.Core.JobRunShell - Calling Execute on job EDIGroup.GetOrders
2008-10-17 14:28:00,014 [EDIScheduler_Worker-4] INFO
EDIProcess.Scheduling.ScheduleGetOrders - ------- Starting Order batch
process -------------------
2008-10-17 14:28:00,046 [EDIScheduler_Worker-4] INFO
EDIProcess.Scheduling.ScheduleGetOrders - ------- Ending Order batch
process -------------------
2008-10-17 14:28:00,046 [EDIScheduler_Worker-4] INFO
EDIProcess.Scheduling.ScheduleGetOrders - EDIGroup.GetOrders next
scheduled to run at: 17/10/2008 14:30:00
2008-10-17 14:28:00,046 [EDIScheduler_Worker-4] DEBUG
Quartz.Core.JobRunShell - Trigger instruction : NoInstruction
2008-10-17 14:30:00,006 [EDIScheduler_QuartzSchedulerThread] DEBUG
Quartz.Simpl.SimpleJobFactory - Producing instance of Job
'EDIGroup.GetOrders', class=EDIProcess.Scheduling.ScheduleGetOrders
2008-10-17 14:30:00,006 [EDIScheduler_Worker-5] DEBUG
Quartz.Core.JobRunShell - Calling Execute on job EDIGroup.GetOrders
2008-10-17 14:30:00,006 [EDIScheduler_Worker-5] INFO
EDIProcess.Scheduling.ScheduleGetOrders - ------- Starting Order batch
process -------------------
2008-10-17 14:30:00,146 [EDIScheduler_Worker-5] INFO
EDIProcess.Scheduling.ScheduleGetOrders - ------- Ending Order batch
process -------------------
2008-10-17 14:30:00,146 [EDIScheduler_Worker-5] INFO
EDIProcess.Scheduling.ScheduleGetOrders - EDIGroup.GetOrders next
scheduled to run at: 17/10/2008 14:32:00
2008-10-17 14:30:00,146 [EDIScheduler_Worker-5] DEBUG
Quartz.Core.JobRunShell - Trigger instruction : NoInstruction
2008-10-17 14:32:00,013 [EDIScheduler_QuartzSchedulerThread] DEBUG
Quartz.Simpl.SimpleJobFactory - Producing instance of Job
'EDIGroup.GetOrders', class=EDIProcess.Scheduling.ScheduleGetOrders
2008-10-17 14:32:00,013 [EDIScheduler_Worker-6] DEBUG
Quartz.Core.JobRunShell - Calling Execute on job EDIGroup.GetOrders
2008-10-17 14:32:00,013 [EDIScheduler_Worker-6] INFO
EDIProcess.Scheduling.ScheduleGetOrders - ------- Starting Order batch
process -------------------
2008-10-17 14:32:00,044 [EDIScheduler_Worker-6] INFO
EDIProcess.Scheduling.ScheduleGetOrders - ------- Ending Order batch
process -------------------
2008-10-17 14:32:00,044 [EDIScheduler_Worker-6] INFO
EDIProcess.Scheduling.ScheduleGetOrders - EDIGroup.GetOrders next
scheduled to run at: 17/10/2008 14:34:00
2008-10-17 14:32:00,044 [EDIScheduler_Worker-6] DEBUG
Quartz.Core.JobRunShell - Trigger instruction : NoInstruction
2008-10-17 14:34:00,004 [EDIScheduler_QuartzSchedulerThread] DEBUG
Quartz.Simpl.SimpleJobFactory - Producing instance of Job
'EDIGroup.GetOrders', class=EDIProcess.Scheduling.ScheduleGetOrders
2008-10-17 14:34:00,004 [EDIScheduler_Worker-7] DEBUG
Quartz.Core.JobRunShell - Calling Execute on job EDIGroup.GetOrders
2008-10-17 14:34:00,004 [EDIScheduler_Worker-7] INFO
EDIProcess.Scheduling.ScheduleGetOrders - ------- Starting Order batch
process -------------------
2008-10-17 14:34:00,035 [EDIScheduler_Worker-7] INFO
EDIProcess.Scheduling.ScheduleGetOrders - ------- Ending Order batch
process -------------------
2008-10-17 14:34:00,035 [EDIScheduler_Worker-7] INFO
EDIProcess.Scheduling.ScheduleGetOrders - EDIGroup.GetOrders next
scheduled to run at: 17/10/2008 14:36:00
2008-10-17 14:34:00,035 [EDIScheduler_Worker-7] DEBUG
Quartz.Core.JobRunShell - Trigger instruction : NoInstruction
2008-10-17 14:36:00,011 [EDIScheduler_QuartzSchedulerThread] DEBUG
Quartz.Simpl.SimpleJobFactory - Producing instance of Job
'EDIGroup.GetOrders', class=EDIProcess.Scheduling.ScheduleGetOrders
2008-10-17 14:36:00,011 [EDIScheduler_Worker-8] DEBUG
Quartz.Core.JobRunShell - Calling Execute on job EDIGroup.GetOrders
2008-10-17 14:36:00,011 [EDIScheduler_Worker-8] INFO
EDIProcess.Scheduling.ScheduleGetOrders - ------- Starting Order batch
process -------------------
2008-10-17 14:36:00,026 [EDIScheduler_Worker-8] INFO
EDIProcess.Scheduling.ScheduleGetOrders - ------- Ending Order batch
process -------------------
2008-10-17 14:36:00,026 [EDIScheduler_Worker-8] INFO
EDIProcess.Scheduling.ScheduleGetOrders - EDIGroup.GetOrders next
scheduled to run at: 17/10/2008 14:38:00
2008-10-17 14:36:00,026 [EDIScheduler_Worker-8] DEBUG
Quartz.Core.JobRunShell - Trigger instruction : NoInstruction
2008-10-17 14:38:00,002 [EDIScheduler_QuartzSchedulerThread] DEBUG
Quartz.Simpl.SimpleJobFactory - Producing instance of Job
'EDIGroup.GetOrders', class=EDIProcess.Scheduling.ScheduleGetOrders
2008-10-17 14:38:00,002 [EDIScheduler_Worker-9] DEBUG
Quartz.Core.JobRunShell - Calling Execute on job EDIGroup.GetOrders
2008-10-17 14:38:00,002 [EDIScheduler_Worker-9] INFO
EDIProcess.Scheduling.ScheduleGetOrders - ------- Starting Order batch
process -------------------
2008-10-17 14:38:00,143 [EDIScheduler_Worker-9] INFO
EDIProcess.Scheduling.ScheduleGetOrders - ------- Ending Order batch
process -------------------
2008-10-17 14:38:00,143 [EDIScheduler_Worker-9] INFO
EDIProcess.Scheduling.ScheduleGetOrders - EDIGroup.GetOrders next
scheduled to run at: 17/10/2008 14:40:00
2008-10-17 14:38:00,143 [EDIScheduler_Worker-9] DEBUG
Quartz.Core.JobRunShell - Trigger instruction : NoInstruction
2008-10-17 14:40:00,009 [EDIScheduler_QuartzSchedulerThread] DEBUG
Quartz.Simpl.SimpleJobFactory - Producing instance of Job
'EDIGroup.GetOrders', class=EDIProcess.Scheduling.ScheduleGetOrders
2008-10-17 14:40:00,009 [EDIScheduler_Worker-10] DEBUG
Quartz.Core.JobRunShell - Calling Execute on job EDIGroup.GetOrders
2008-10-17 14:40:00,009 [EDIScheduler_Worker-10] INFO
EDIProcess.Scheduling.ScheduleGetOrders - ------- Starting Order batch
process -------------------
2008-10-17 14:40:00,056 [EDIScheduler_Worker-10] INFO
EDIProcess.Scheduling.ScheduleGetOrders - ------- Ending Order batch
process -------------------
2008-10-17 14:40:00,056 [EDIScheduler_Worker-10] INFO
EDIProcess.Scheduling.ScheduleGetOrders - EDIGroup.GetOrders next
scheduled to run at: 17/10/2008 14:42:00
2008-10-17 14:40:00,056 [EDIScheduler_Worker-10] DEBUG
Quartz.Core.JobRunShell - Trigger instruction : NoInstruction
2008-10-17 14:42:00,016 [EDIScheduler_QuartzSchedulerThread] DEBUG
Quartz.Simpl.SimpleJobFactory - Producing instance of Job
'EDIGroup.GetOrders', class=EDIProcess.Scheduling.ScheduleGetOrders
2008-10-17 14:42:00,016 [EDIScheduler_Worker-1] DEBUG
Quartz.Core.JobRunShell - Calling Execute on job EDIGroup.GetOrders
2008-10-17 14:42:00,016 [EDIScheduler_Worker-1] INFO
EDIProcess.Scheduling.ScheduleGetOrders - ------- Starting Order batch
process -------------------
2008-10-17 14:42:02,422 [EDIScheduler_Worker-1] INFO
EDIProcess.Scheduling.ScheduleGetOrders - ------- Ending Order batch
process -------------------
2008-10-17 14:42:02,422 [EDIScheduler_Worker-1] INFO
EDIProcess.Scheduling.ScheduleGetOrders - EDIGroup.GetOrders next
scheduled to run at: 17/10/2008 14:44:00
2008-10-17 14:42:02,422 [EDIScheduler_Worker-1] DEBUG
Quartz.Core.JobRunShell - Trigger instruction : NoInstruction


any help will be appreciated.

Thanks in advance Marko
> > any ideas?- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -
Reply all
Reply to author
Forward
0 new messages