Prevent the job after 18:00 and before 09:00

Hello, Jmix Team.
we are using the quartz job screen to execute the job.
we want to prevent the job after 18:00 and before 09:00
after clicking the execute now button.
how can we achieve this?

Hello,

to prevent “Execute now” button having an effect after 18:00 and before 09:00 next day,
you can create a new screen by extending or overriding the existing one, (new view - scroll down - extend) and then modify the button behavior by adding a logic to check if the current time is in the allowed interval.
The screen in question is JobModelListView.

Kind regards,
Mladen

2 Likes