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

adding existing triggers back to scheduler after restart #1

Closed
muruga opened this issue Sep 8, 2014 · 2 comments
Closed

adding existing triggers back to scheduler after restart #1

muruga opened this issue Sep 8, 2014 · 2 comments

Comments

@muruga
Copy link

muruga commented Sep 8, 2014

Thanks so much for open souring the redis JobStore. i am planning to use this for a project, i did little bit of testing and realized that on scheduler restart, the existing triggers are not getting added back to scheduler. looks like we need something like org.quartz.impl.jdbcjobstore.JobStoreSupport.MisfireHandler for redis job store.

@kehati
Copy link
Contributor

kehati commented Sep 9, 2014

Hey Muruga, the job store already enhances 2 mechanisms for releasing
triggers. The first one will release triggers of previous schedulers
back on startup and the second will release triggers of non-alive
schedulers in a configured interval.
To trigger the first mechanism a 'instanceIdFilePath' property should be
configured, and to trigger the second mechanism a
'releaseTriggersInterval' property should be configured, as documented
at the project's configuration section:
https://github.com/RedisLabs/redis-quartz#configuration

As i understand, you are talking about the first mechanism. Did you
configure it (or both mechanisms) on your testings?

On 9/8/2014 8:20 PM, Muruga Chinnananchi wrote:

Thanks so much for open souring the redis JobStore. i am planning to
use this for a project, i did little bit of testing and realized that
on scheduler restart, the existing triggers are not getting added back
to scheduler. looks like we need something like
org.quartz.impl.jdbcjobstore.MisfireHandler for redis job store.


Reply to this email directly or view it on GitHub
#1.

Signature Template

Matan Kehat | Channel Integration Lead
*Redis Labs http://www.redislabs.com/ *- Enterprise-Class Redis for
Developers

Mobile (IL): +972 (54) 549-5514
Email: matan@redislabs.com
Skype: matan.kehat

Blog https://www.redislabs.com/blog/ | Twitter
https://twitter.com/redislabsinc/ | LinkedIn
https://www.linkedin.com/company/redis-labs-inc

https://www.redislabs.com/company/redis-labs-careers

@muruga
Copy link
Author

muruga commented Sep 9, 2014

Thanks Matan, i configured to use instanceIdFilePath with one quartz scheduler running, here is my use case:

  1. i schedule a job to trigger every 120 seconds for 5 times. lets say it triggered the job 2 times.
  2. right after the second job execution, i restarted the scheduler and i expect it to continue to execute the job 3 more times. but it is not happening.

i can list the jobs after restart, but it is not getting triggered. i will try out "releaseTriggersInterval".

@muruga muruga closed this as completed Dec 24, 2014
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

2 participants