HappyEngineer
HappyEngineer

Reputation: 4055

quartz scheduler jobs that execute on all servers in a cluster

Once I enable clustering in Quartz, it will distribute the cron jobs to the various servers in the cluster. That's fine normally, but there's actually one job that I'd like to have executed on every server in the cluster every time it's scheduled to run.

Is there a way to mark a quartz cron job to indicate that it should run on all servers in a cluster?

Upvotes: 2

Views: 1326

Answers (1)

HappyEngineer
HappyEngineer

Reputation: 4055

I solved this by having two quartz schedulers running. One was configured as a clustered scheduler. The other was configured as a local scheduler. Obviously, jobs that are supposed to run on all machines would get added to the local scheduler.

Upvotes: 2

Related Questions