Questions tagged [quartz-scheduler]

Quartz Scheduler is a Java-based open-source job scheduling service. NOTE: this tag is about the Java framework. For .NET questions please use [quartz.net] instead. For Clojure questions please use [quartzite] unless you're directly interoping with the Java library.

Quartz Scheduler is a Java-based open-source job scheduling library.

You can find out more at http://quartz-scheduler.org/.

See also

3792 questions
25
votes
2 answers

What does each table for quartz scheduler signify?

There are few tables that quartz scheduler uses for scheduling jobs and to identify which job is running currently. It uses the following tables : qrtz_fired_triggers qrtz_simple_triggers qrtz_simprop_triggers qrtz_cron_triggers …
Nakul Kumar
  • 325
  • 1
  • 5
  • 11
25
votes
1 answer

delete trigger in quartz

Is there a way to delete a scheduled trigger with a specific job? It seems that only way to delete a trigger is to delete the whole job and then re-register the job and trigger. I've a job which can potentially have 100+ triggers and I really don't…
user140736
  • 1,913
  • 9
  • 32
  • 53
25
votes
5 answers

Java Example: Dynamic Job Scheduling with Quartz

I want to expose an user interface to define Quartz JOBs dynamically. Where user should have facility to define JOBs properties like JOB name, cron expression or time interval, specific java class for task etc. Is there any Open Source that…
Narendra Verma
  • 2,372
  • 6
  • 34
  • 61
24
votes
4 answers

Spring 3 + Quartz 2 error

I received the error below when I use Spring 3 with Quartz 2. Does anyone knows the reason? Error: Exception in thread "main" org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class…
user705414
  • 20,472
  • 39
  • 112
  • 155
24
votes
6 answers

How to interrupt or stop currently running quartz job?

I have some tasks that are executed with the help of Java Quartz Jobs, but I need to stop some tasks by some condition in my code. I read that this can be done via InterruptableJob. But i didn't understand in what way i should do it?
user253202
24
votes
4 answers

spring batch vs quartz jobs?

I am new to batch processing. I am trying to start with simple scheduler and job. But i am confused b/w spring batch vs quartz jobs. My understanding is Quartz :- quartz provides both frameworks i.e scheduler framework and job framework(in case I…
emilly
  • 10,060
  • 33
  • 97
  • 172
24
votes
4 answers

how to stop spring batch scheduled jobs from running at first time when executing the code?

i'm using spring batch 2.2.4 with quartz to run some jobs at certain time the problem is the jobs always run after executing the code at the first time then it runs based on the scheduled time. I want to stop the first run and let it only runs based…
Joshua
  • 345
  • 3
  • 5
  • 11
23
votes
6 answers

Grails and Quartz: Bad value for type long

I'm trying to save quartz jobs into the database. I've set up the tables, created quartz.properties files, but when I try to run the app, this exception shows up: 2012-02-01 17:36:23,708 [main] ERROR context.GrailsContextLoader - Error executing…
22
votes
2 answers

TaskScheduler, @Scheduled and quartz

Is there a way to have @Scheduled with quartz as the underlying scheduler? Two things that I can think of, but both require some work: create a custom BeanPostProcessor that will parse the @Scheduled annotation and register quartz jobs implement…
Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140
22
votes
5 answers

Quartz Performance

It seems there is a limit on the number of jobs that Quartz scheduler can run per second. In our scenario we are having about 20 jobs per second firing up for 24x7 and quartz worked well upto 10 jobs per second (with 100 quartz threads and 100…
vikas
  • 1,535
  • 1
  • 13
  • 22
21
votes
1 answer

Difference between Quartz Job and Scheduling Tasks with Spring?

I am new to Spring-boot(version 1.3.6) and Quartz and I am wondering what is the difference between making a task with Spring-scheduler: @Scheduled(fixedRate = 40000) public void reportCurrentTime() { System.out.println("Hello…
Xelian
  • 16,680
  • 25
  • 99
  • 152
21
votes
3 answers

How to get and set a global object in Java servlet context

I wonder if anyone can advise: I have a scenario where a scheduled job being run by Quartz will update an arraylist of objects every hour. But I need this arraylist of objects to be visible to all sessions created by Tomcat. So what I'm thinking is…
Mr Morgan
  • 543
  • 4
  • 7
  • 17
21
votes
3 answers

Update an existing JobDataMap

I have a Quartz job that has already been scheduled. I want to update the JobDataMap associated with it. If I get a JobDataMap with JobDataMap jobDataMap = scheduler.getJobDetail(....).getJobDataMap(), is that map "live"? ie. if I change it, will…
Paul Tomblin
  • 179,021
  • 58
  • 319
  • 408
20
votes
7 answers

Quartz HelloJob

I am new to Quartz and I'm running into a compiling error. I am simply trying to get the HelloJob to run based on Quartz's Lesson 1 for Hello World. I am having trouble declaring a JobDetail with the error: The method newJob(Class) in…
Chandrew
  • 16,987
  • 4
  • 24
  • 40
20
votes
4 answers

Java Quartz scheduled Job - disallow concurrent execution of Job

I am using a Quartz Job for executing specific tasks. I am also scheduling its execution in my Main application class and what i am trying to accomplish is not to allow simultaneous instances of this job to be executed. So the scheduler should only…
thanili
  • 777
  • 4
  • 26
  • 57