quartz-scheduler

Grails clustering quartz jobs sample code and config desired

爱⌒轻易说出口 提交于 2019-11-30 05:30:05
I am using the quartz plugin with Grails 1.3.7. I have a need to load balance/cluster a server app that uses quartz jobs. Apparently this is supported but I am finding that all the google search results and links within documents are broken. I've found some raw Java examples but I would assume Grails has a more grailsy way to do this. All I need is a simple example to use as a template. I understand I need to somehow enable quartz to use JDBC to store the jobs and manage locking. I think a link to a single sample would do it. But literally every time I've found something that looks promising

How to scale the Quartz scheduler?

主宰稳场 提交于 2019-11-30 05:10:56
I plan to use the Quartz scheduler as I read many good opinions about it. My problem is as follows: I will have thousands of triggers living in the system at any given time. Most of the triggers will fire just one event and die. In addition, it is very likely I will have to cancel many jobs after their allocation (based on new input). Can Quartz scale to this? Which JobStore is recommended? I planned to use the JDBC one over mysql. Added Information : My jobs will either send an e-mail or post data via HTTP post to other services (over WAN). There are some tips and recommendations in the FAQ:

delete trigger in quartz

↘锁芯ラ 提交于 2019-11-30 05:07:57
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 want to delete the job and re-register all the triggers when I just have to delete 1 trigger. Also, is there a way to stop the scheduler from executing the job as soon as the trigger is configured? Thanks try scheduler.unscheduleJob this accepts the trigger and group names as a parameters and will only remove the trigger specified, not the job.

Create a Quartz.NET Job with several constructor parameters

十年热恋 提交于 2019-11-30 03:56:58
问题 I have a job which needs to kick off some methods on another object. I'd like to be able to pass these into the job in its constructor. Looking around, it seems that the only way to achieve this is to use one of IoC frameworks. Whilst this method will be a solution for me in the future, right now I need a vanilla solution, not requiring any IoC. I am aware of the JobDataMap but the Best Practices documentation advises against this due to serialization. The object is multi-threaded and

Finding Last Fired time using a Cron Expression in Java

不羁的心 提交于 2019-11-30 03:46:41
问题 Is there a way in Java to find the "Last Fired Time" from a Cron Expression. E.g. If now = 25-Apr-2010 10pm, cron expression "0 15 10 ? * *" (quartz) should return me 25-Apr-2010 10:15am Note: 1) I do not care if we use standard cron expressions (like Unix and Quartz) or less popular ones if they can fetch me the correct "Last Fired Time" 2) Also it is not literally "Last Fire time" as the trigger may not have fired, but logically there should be a way of telling when it (would have) fired

Finding all classes implementing a specific interface [duplicate]

假装没事ソ 提交于 2019-11-30 02:46:40
This question already has an answer here: Find Java classes implementing an interface [duplicate] 9 answers I am in the process of developing an application (Quartz scheduler) where we have a job class which is responsible for actually executing the work and we need to tell/pass the name of the job class while creating a trigger in the Quartz scheduler. I want to provide an extension point to all who want to use the API (beside the some generic jobs which I will provide as part of the API). The idea is to create an (marker) interface and if any one wants to declare their class as scheduler job

Pros and cons of using java.util.timer vs Quartz for scheduling? [closed]

偶尔善良 提交于 2019-11-30 02:26:01
I've got to write an app that performs a series of tasks: task to be run once at 0200 hours every day. task to be run once at 0400 hours ever day task to be run at 15 minute intervals starting at 0003 hours task to be run at 15 minute intervals starting at 0005 hours What are the pros and cons of using plain java.util.timer Vs. Quartz for this? Are there any other alternatives I should be considering? Quartz Additional dependency API currently (late 2011) changing: 1.x on its way out, but the only one supported by Spring and possibly others Jobs can be stored persistently; multiple Schedulers

Quartz Scheduler suddenly stop running and no exception error

…衆ロ難τιáo~ 提交于 2019-11-30 00:20:48
问题 I have some quartz job which was running everyday at 7pm. Suddenly it failed to run. I check my server.log and there are no exception thrown. Anyone have any idea what could be the issue? Thanks in advance 回答1: I had a similar problem but the problem was, I had 10 threads quartz default number of threads in quartz properties and when I made thread dump* I found that I have 10 jobs in blocked stat, which means that I can't run any more threads. A quick fix to this problem to increase the

An enterprise scheduler for python (like quartz)

核能气质少年 提交于 2019-11-29 23:05:37
I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and must be fired after restarting. Jobs must enter and exit the scheduler in a transaction (i.e. if some database operation fail, in a database unrelated to the scheduler, then the job must not have exited or entered the scheduler). Scalability. Depends on the measure of success of the project, but I would prefer to know from the beggining that I am not starting from a dead end. Configurability: when

Alternatives to Quartz for job scheduling [closed]

你说的曾经没有我的故事 提交于 2019-11-29 21:15:25
Has anyone found any alternative open-source solutions to Quartz which they are happy with? I know Cronacle is a well respected (and pricey) closed source solution for job scheduling but I'd like to make sure we exhaust the open-source alternatives before going down that route. jitter Did you already check all of those listed in Open Source Job Schedulers in Java : jcrontab Quartz Fulcrum Scheduler Essiembre J2EE Scheduler Gos4j Oddjob Job Scheduler JDRing jBatchEngine MyBatchFramework Super cron4j I did some looking a while back and was hard-pressed to find any open source Java-based job