jmix-framework / jmix

Jmix framework
https://www.jmix.io
Apache License 2.0
606 stars 122 forks source link

Quartz: Jobs do not resume #1405

Open Yarik2308 opened 1 year ago

Yarik2308 commented 1 year ago

Same as in #1079 but jmix version 1.4.4 add spring.quartz.auto-startup=false in properties. Jobs are pauesd on application start. If u try to resume job u get jobResumed notification but it stays paused. Execute now button also do not run job.

Gavrilov-Ivan commented 1 year ago

Property spring.quartz.auto-startup=false keeps Scheduler from underlying Quartz library in standby mode. In this mode Scheduler can't fire triggers and execute jobs. Jmix Quartz addon is designed to work with active Scheduler. So if you use this property you have to call Scheduler#start() (autowire org.quartz.Scheduler) somewhere before you are able to execute jobs.

Gavrilov-Ivan commented 1 year ago

Possible further improvements:

  1. To prevent misunderstanding:
    1. Display Scheduler's state.
    2. Disable corresponding buttons if Scheduler's state doesn't allow to perform these actions.
  2. Support additional features
    1. Add buttons to control Scheduler's state (start, standby).
    2. Research availability of immediate execution of some job without startup the entire Scheduler.
gorbunkov commented 3 months ago

Let's do the following:

To prevent misunderstanding: Display Scheduler's state. Disable corresponding buttons if Scheduler's state doesn't allow to perform these actions.