Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Configure triggers from properties #92

Open
rrsdev opened this issue Aug 17, 2017 · 0 comments
Open

Suggestion: Configure triggers from properties #92

rrsdev opened this issue Aug 17, 2017 · 0 comments

Comments

@rrsdev
Copy link

rrsdev commented Aug 17, 2017

I'm sure this is a more complex task than it sounds, but the basic idea mightbe something like:

(application.yml):

quartz;
  triggers:
	- name: 'cronTrigger1'
	  type: cron
	  cronExpression: '0 0 2 * * ?'
	- name: 'cronTrigger2'
	  type: cron
	  cronExpression: '0 0 12 * * 1'
	- name: 'simpleTrigger1'
	  type: simple
	  startDelay:10000, 
	  repeatInterval: 30000, 
	  repeatCount: 10

Then perhaps the Job would look like:

class MyJob  {
  	static triggers = {
		configured name: 'cronTrigger1'
    }
}	
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant