Limit two jobs that cannot be run simultaneously in Quartz-Scheduler

Is it possible in Quartz-Scheduler to define job execution restrictions?

Indeed, I have two classes that implement the Job interface: JobA and JobB.

JobA will be scheduled every minute. JobB will be scheduled every hour.

I do not want JobA and JobB to start at the same time.

Note: JobA and JobB do not do the same.

Thank you for your responses.

+5
source share
1 answer

There is no direct support. If it were the same job, you could define it as stateful - such tasks cannot be performed simultaneously with the definition.

Quartz 1, , , . , , .

, . , , - . /, , .

+4

All Articles