Quartz.NET job instance created but execute never called

193 views
Skip to first unread message

Donovan Edye

unread,
Jan 30, 2015, 12:54:32 AM1/30/15
to quar...@googlegroups.com

Hi,

I am using 2.2.4.400 of http://www.quartz-scheduler.net/. It is successfully working in other projects but not in this new one which is:

If I put a break point in the constructor for the class:

public class EmailQueueProcessJob : IJob

it is hit, however the execute never gets called. I have a break point placed at the top of:

public void Execute(IJobExecutionContext aContext)
{
}

Looking in the database I can see the jobs being created that they are supposedly "EXECUTING" but my Execute method is never called.

Jobs as they appear in the database

There is no code in the constructor, but clearly there must be an exception or something happening somewhere to prevent the execution. Any ideas on how I can track this down?


Jay Vilalta

unread,
Jan 30, 2015, 1:04:44 PM1/30/15
to quar...@googlegroups.com
Take a look at the messages getting logged by Quartz.Net via commons logging. You'll have to set up your project so it writes out the messages somewhere.

--
You received this message because you are subscribed to the Google Groups "Quartz.NET" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quartznet+...@googlegroups.com.
To post to this group, send email to quar...@googlegroups.com.
Visit this group at http://groups.google.com/group/quartznet.
For more options, visit https://groups.google.com/d/optout.

Donovan Edye

unread,
Jan 30, 2015, 7:39:00 PM1/30/15
to quar...@googlegroups.com
Has anyone got any sample code? As this is an MVC application it is not as simple as logging to a text file.

Jay Vilalta

unread,
Jan 30, 2015, 7:46:32 PM1/30/15
to quar...@googlegroups.com

Do you use any logging framework in your app?

Donovan Edye

unread,
Feb 4, 2015, 1:00:29 AM2/4/15
to quar...@googlegroups.com
I finally managed to figure it out. Thanks Jay.
Reply all
Reply to author
Forward
0 new messages