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

Add an option for Component to stop scheduler without waiting to finish #17

Open
ronaldsuwandi opened this issue Apr 13, 2017 · 0 comments

Comments

@ronaldsuwandi
Copy link

Currently in QuartzScheduling.stop function it always waits until all tasks are finished

public void stop() throws Exception {
        if (started) {
            this.scheduler.shutdown(true); // <---
            started = false;
            log.info("Quartz stopped");
        }
    }

It would be very useful if user can decide whether or not they want the scheduler to shutdown without waiting for the task to finish - as for now whenever I tried to stop my system, it can take few minutes due to existing long-running task

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