quartz.net

quartz.net - Can I not add a callback delegate method to JobExecutionContext?

Hi, BACKGROUND - I have a synchroisation function within my MainForm class. It gets called manually when the user pushes the SYNC button. I want to also call this synchroisation function when the scheduler triggers too, so effectively want SchedulerJob:IJob.Execute() method to be able to call it. QUESTION - How do I access the Mai...

WinForms - How do I access/call methods in UI thread from a separate thread without passing a delegate?

Hi, QUESTION: In .NET 3.5 WinForms apps, how do I access/call methods in UI thread from a separate thread, without passing a delegate? EXAMPLE: Say I have some code I want to run both (a) manually when the user clicks a button, and (b) periodically called by a process which is running in a separate non-mainUI thread but without passing...

Quartz.NET Instance Handling Problem

Hi, I have 2 instances which implements 2 different instance IDs in 2 different windows services as: //windows service 1 instance 1 properties["quartz.scheduler.instanceName"] = "instanceName1"; properties["quartz.scheduler.instanceId"] = "instanceID1"; //windows service 2 instance 2 properties["quartz.scheduler.instanceName"] = "inst...

Quartz.net as service can't configure the quartz_job.xml file to use AdoJobStore

Hi, i am using quartz in my project, and i'm storing the jobs in the adojobstore, i've created a working quartz windows service, but i can't find where i can configure the quartz_jobs.xml to use AdoJobstore instead of RamJobStore. Thanks ...

Add Quartz.net job without starting the scheduler

Is there any way of adding jobs to Quartz.Net jobstore without starting up a scheduler instance? ...

Quartz.Net scheduler works locally but not on remote host

Hi. I have a timed quartz.net job working fine on my dev machine, but once deployed to a remote server it is not triggering. I believe the job is scheduled ok, because if I postback, it tells me the job already exists (I normally check for postback however). The email code definitely works, as the 'button1_click' event sends emails su...

Pros and Cons of running Quartz.NET embedded or as a windows service.

I want to add quartz scheduling to an ASP.NET application. It will be used to send queued up emails. What are the pros and cons of running quartz.net as windows service vs embedded. My main concern is how Quartz.NET in embedded mode handles variable number of worker processes in IIS. ...

Is there a way to get overdue jobs in Quartz.net?

Is there a way to get jobs that are supposed to be running/completed by now (based on schedule), but queued for some reason (such as threads are used up)? ...

Proper way to dispose of Quartz.NET?

I am using Quartz.NET in an application. What is the proper way to dispose of Quartz.NET. Right now I am just doing if (_quartzScheduler != null) { _quartzScheduler = null; } Is that enough or should I implement a dispose or something in the jobType class? Seth ...

Using Quartz in an Asp.Net MVC environment using NHibernate Burrow

I have a web site running Burrow, and I'd like to use it for Quartz jobs as well. The thing is that I want them to not share any state. The Quartz jobs is running in each own threads while the Mvc framework closes the Workspace at the end of every request. Ideally, mvc should have it's own session, and each job should have it's own sess...

Logging with Quartz.net

I will shamelessly state that I have little experience with Log4Net... I only just installed it, but it won't capture log events from Quartz.net, which is a scheduling library. Apparently Quartz.net uses Commons Logging and that needs to be configured to point to my Log4Net settings. Unfortunately, it doesn't seem to work. Help is apprec...

Quartz exception on startup

Quartz.net has been working fine, but suddenly I get the following exception on startup: Quartz.SchedulerConfigException: Failure occured during job recovery. ---> Quartz.JobPersistenceException: Couldn't store trigger" This occurs immediately on startup: Quartz.ISchedulerFactory sf = new StdSchedulerFactory(); schedule = sf.GetSche...

StructureMap returns a disposed nHibenrate session object from thread local scope

I have this web application which uses SM for IoC. I am using HybridHttpOrThreadLocalScoped scope to store my nHibernate ISession objects. This works ok in a session per request fashion for my web requests. But I also have quartz.net that schedules couple of jobs. The job uses the same unit of work to get the ISession object. In this s...

why quartz.net creates threads with same thread id?

I have setup quartz.net to run a scheduled job. It is amazing when I look at the thread ids. They just get repeated in 10-thread interval. I mean for instance if the first thread that gets to execute my job has id 101 then the eleventh thread (that runs the same job at the eleventh interval) has the same id 101! It seems that quartz.n...

how to make multiple instances execute the same job at the same time not concurrently

Hi everyone, I have 4 instances of Quartz Server. All of the instances point to one ADO JobStore. All I want to do is to make each Quartz instance execute the same job at the same time. I hope it's clear enough. ...

Retreiving Quartz.net job information from ASP.Net app

We have a Quartz.Net installation running as a Windows Service. That's running fine. We also have a ASP.Net app that adds/edits jobs and monitors jobs. We occasionally get an error in the ASP.Net application. The errors are either "The Scheduler has been Shutdown." or "Scheduler with name 'JOB_SCHEDULER_NAME' already exists." If you re...

Quartz.NET, "Error communicating with remote scheduler."

Hi all, I'm having trouble getting a client/server implementation of Quartz.NET working. I have a SQL Server on ServerA, a server running Quartz as a service (ServerB) and a server which hosts an ASP.NET application (ServerC). I have followed all the tutorials and delved into the code a fair amount but I can't see what I'm doing wrong...

Ways of scheduling tasks (without writing windows scheduler) in asp.net..

I am into shared hosting and they do not allow me to use windows scheduler... So what are the ways of achieving scheduled tasks ie(timed mail) in asp.net... I just saw background process by Jeff Atwood blog... Is it relaible? Or any other ways of doing scheduled tasks... Then i found quartz.net but i can't find a simple example that em...

Quartz.net setup in an asp.net website...

I ve just added quartz.net dll to my bin and started my example... How to call a c# method using quartz.net based on time? using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Quartz; using System.IO; public partial class _Default : System.Web...

Handle JobExecutionException in Quartz.net

Probably a stupid question... but here goes anyway... I have set up quartz, and can schedule jobs, and I can confirm that jobs (implementing the IJob interface) are working. Looking at the documentation on the site, (Lesson 3 of the tutorial) "The only type of exception that you are allowed to throw from the execute method is JobExecuti...