Skip to content

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

@ronaldsuwandi

Description

@ronaldsuwandi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions