Giter Club home page Giter Club logo

Comments (9)

kefirfromperm avatar kefirfromperm commented on June 25, 2024

Please describe your environment. Grails version, the plugin version, application server.

from grails-quartz.

rvanderwerf avatar rvanderwerf commented on June 25, 2024

I'm confused, I don't think the plugin has responsibility to do this on exit. Many/most people want the jobs to outlive the app, if the app crashes or restarted the jobs should still be in quartz so they can be recovered? Or is this specifically happening for non-persistent or durable jobs?

from grails-quartz.

donald-jackson avatar donald-jackson commented on June 25, 2024

@kefirfromperm - apologies. Grails 2.5.1 on Mac OS X 10.10 Java 8 - tomcat 7.0.55.3.

@rvanderwerf - its quite possible, I'm not super familiar with Quartz at this stage - however - if this is the case (the jobs should outlive the application) - how can I detect from within the job that the application is no longer running so it can shut itself down. Using grails run-app / stop-app I would expect it to stop jobs, but I may be wrong. I've also noticed when deploying with Tomcat manager it won't allow the new versions to take over as the old versions will not stop jobs.

from grails-quartz.

rvanderwerf avatar rvanderwerf commented on June 25, 2024

I'd up to the app code to manage this. You have to query jobs and triggers using the quartz API and clean them out if you don't want them anymore. If you do a nice stop, you can add this to your shutdown code as well. Quartz doesn't really provide any auto-management of this out of the box.

from grails-quartz.

donald-jackson avatar donald-jackson commented on June 25, 2024

@rvanderwerf OK. Do you have any examples of doing this? I've tried adding blocks of code in the BootStrap destroy methods as well as the onShutdown in plugins config but neither of these methods appear to be triggered at application exit.

from grails-quartz.

donald-jackson avatar donald-jackson commented on June 25, 2024

Just checking in here if anyone can assist with this?

from grails-quartz.

mgkimsal avatar mgkimsal commented on June 25, 2024

@donald-jackson - did you ever get past this? I'm hitting the same problem.

Maybe I'm misunderstanding the entire purpose of the plugin - it seems to bundle quartz and allow it to autostart. if I'm also then stopping the app, I'd want this to cleanly shut down.

from grails-quartz.

donald-jackson avatar donald-jackson commented on June 25, 2024

@mgkimsal unfortunately not, I still have the problem I just use other methods to hard-stop my application now as I'm unable to stop these jobs programmitically or automatically.

from grails-quartz.

davydotcom avatar davydotcom commented on June 25, 2024

resolved in 2.0.10

from grails-quartz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.