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

No documentation about how to properly start quartz manually #88

Open
offerbaruch opened this issue Apr 19, 2017 · 1 comment
Open

No documentation about how to properly start quartz manually #88

offerbaruch opened this issue Apr 19, 2017 · 1 comment

Comments

@offerbaruch
Copy link

offerbaruch commented Apr 19, 2017

Hi

When i let quartz start automatically everything works fine and i am able to use the myjob.schedule method...
I am trying to start the scheduler at the end of my bootstrap...
I have tried several different ways, and although some seems to be working i get persistence exceptions when i am trying to schedule a job.

I would like to find out what is the proper way to start it in my bootstrap.
I can post exactly what i did, but i prefer to try the proper way first.

Thanks
Offer Baruch

@offerbaruch
Copy link
Author

offerbaruch commented Apr 20, 2017

Looks like commit 3e5e319 fixed my problem.
I upgraded to 2.0.12 and everything works fine now even if auto start is disabled.
I still think that you should document how to start the agent manually...
currently I am doing so by injecting the BootStrap with:

     def quartzScheduler
    
    // and calling following at the location appropriate for my application.
     quartzScheduler.start() 

I was not sure if i should be using the JobManagerService (which is also not documented) and use:

JobManagerService.quartzScheduler.start()

but technically I am not sure if it matters.

again i would be happy if someone can answer my question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants