CronNudge

Published October 21, 2026

How to Monitor Quartz Scheduler Jobs

Quartz runs inside the JVM. A scheduler that has just been created is in standby, and triggers do not fire until scheduler.start(). standby() puts it back in that mode. shutdown() stops it, and that instance cannot be started again. If the process exits, the scheduler is gone with it. Nothing in the library sends mail about any of that. The log line exists only while someone is reading the log.

The scheduling facts below are the Quartz 2.5 documentation and the 2.5 source. That is the current stable line. @Scheduled, with no job store of its own, is monitoring Spring Boot scheduled tasks. The persistent scheduler on .NET is monitoring Hangfire recurring jobs. The five fields are in cron expression examples. A Linux crontab on a machine you run is crontab not running. The general pattern is how to monitor cron jobs.

The scheduler has to be started, and the JVM has to stay up

StdSchedulerFactory builds the scheduler. new StdSchedulerFactory().getScheduler() returns it. Until start(), it does not fire triggers.

  • start() starts the threads that fire triggers. The first call on that instance also starts misfire handling and recovery.
  • startDelayed(seconds) calls start() after that many seconds. The call itself returns immediately.
  • standby() stops firing. The scheduler is still there. A later start() resumes it. Misfire instructions are not applied inside that start() call. The job store notices misfires on its next pass.
  • shutdown() stops firing and releases the scheduler. It cannot be started again. shutdown(true) waits until jobs that are already executing finish. shutdown() is shutdown(false).

isStarted() stays true after start() has been called once, including while the scheduler is in standby and after shutdown. isInStandbyMode() is the check for standby.

import org.quartz.Scheduler;
import org.quartz.impl.StdSchedulerFactory;

Scheduler scheduler = new StdSchedulerFactory().getScheduler();
// Still in standby. Triggers do not fire.
scheduler.start();

The factory looks for quartz.properties in the working directory. If that file is missing, it loads org/quartz/quartz.properties from the jar. That resource sets the job store to org.quartz.simpl.RAMJobStore, the thread count to 10, and org.quartz.jobStore.misfireThreshold to 60000. A file in the working directory replaces it. The configuration reference lists org.quartz.threadPool.threadCount as required and shows -1 in the default column. That is the value before the properties file is applied. The pool size you actually get is the positive integer in the file that was loaded.

A process that exits takes the scheduler with it. A container that stops, or a host that kills the JVM, is the same outcome. CronNudge does not see the process, and it cannot start it.

Job stores, clustering, and Spring Boot

RAMJobStore keeps jobs, triggers, and calendars in memory. It is fast, and the configuration page says all of that scheduling information is lost when the process terminates. The usual pattern is to schedule the jobs again at startup. Clustering does not use this store.

A JDBC job store writes the jobs and triggers to database tables, so a restart still has them. Clustering works with the JDBC job store (JobStoreTX or JobStoreCMT) and with nothing else. Turn it on with org.quartz.jobStore.isClustered set to true. Every node has to use the same tables. The clustering page says that when a trigger's firing time occurs, the first node to lock it is the node that fires it, and only one node fires that time. The next time can be a different node.

The same page says not to run clustering on separate machines unless the clocks stay within a second of each other. It also says not to call start() on a non-clustered scheduler against tables that any other instance is already using.

Each node needs its own org.quartz.scheduler.instanceId. The value AUTO assigns one. The properties files can otherwise match. Thread-pool size is one of the allowed differences.

Spring Boot auto-configures a Scheduler through SchedulerFactoryBean when Quartz is on the classpath, including from spring-boot-starter-quartz. It picks up JobDetail, Calendar, and Trigger beans. The reference says the default store is in memory. spring.quartz.job-store-type=jdbc selects the JDBC store when a DataSource bean is available. spring.quartz.properties.* is how those org.quartz.* keys, including org.quartz.jobStore.isClustered, are passed through.

SchedulerFactoryBean starts the scheduler after initialization. Its documented default is to start. Spring Boot's spring.quartz.auto-startup is that flag, and the property class initializes it to true. Set it to false and the scheduler stays in standby until something calls start().

By default, jobs created from configuration do not overwrite jobs already read from a persistent store. A cron you change in code can leave the stored trigger on the old schedule until spring.quartz.overwrite-existing-jobs is turned on.

spring.quartz.jdbc.initialize-schema=always runs the standard Quartz scripts. Those scripts drop the existing tables and delete every trigger on each restart. An Executor bean is not wired in as the thread pool. The pool still comes from the Quartz properties.

Two replicas on the default in-memory store are two schedulers. Each one fires. That is the duplicate run. Clustering is the JDBC store with isClustered set, not a second copy of the memory store.

Triggers

A cron expression is six fields, or seven when the year is set. The Cron Trigger Tutorial lists them in this order:

┌──────────── second (0-59)
│ ┌──────────── minute (0-59)
│ │ ┌──────────── hour (0-23)
│ │ │ ┌──────────── day of month (1-31)
│ │ │ │ ┌──────────── month (1-12 or JAN-DEC)
│ │ │ │ │ ┌──────────── day of week (1-7 or SUN-SAT)
│ │ │ │ │ │ ┌────────── year (optional)
│ │ │ │ │ │ │
* * * * * ?

The parser rejects a month outside 1–12 and a day of week of 0 or above 7. 3 in the month field is March, which is the tutorial's Wednesday-in-March example. Day of week is 1 through 7. Lesson 6 states that 1 is Sunday. The names in the 2.5 source match that: SUN is 1, MON is 2, FRI is 6, SAT is 7. 0 is not a Sunday here. Spring's six-field cron uses 0 or 7 for Sunday. These numbers are not that cron.

? means no specific value. It is allowed on day of month and day of week. The tutorial says support for specifying both of those fields is not complete, and you must use ? in one of them. 0 0 3 * * ? is 03:00:00 every day. 0 0 9 ? * MON-FRI is 09:00:00 Monday through Friday.

L is the last day. On day of month, L is the last day of the month, and L-3 is the third-to-last day. On day of week, L alone means Saturday (7), and 6L means the last Friday. From Quartz 2.5.1, day of month may mix L with other numbers, such as 5,15,L. W is the nearest weekday (Monday through Friday) to a single day of month, and it does not cross into the next or previous month. LW is the last weekday of the month. # is the nth weekday: 6#3 is the third Friday, and a fifth weekday that the month does not contain does not fire. The check has no L, W, #, or year field. Leave those off the check.

CronScheduleBuilder.inTimeZone sets the zone the expression is resolved in. If you never set one, CronExpression.getTimeZone() uses TimeZone.getDefault(), the JVM's default zone. The cron text does not contain the zone. Pass an IANA id, such as UTC or America/New_York, and put that same name on a cron check.

The Cron Trigger Tutorial says to be careful with fire times in the hours around a daylight-saving change. For US locales it names the hour before and after 2:00 AM, because the shift can skip a fire or repeat one. The CronTrigger javadoc names midnight to 1:00 AM for the same skip-or-repeat warning. The other schedulers are in cron jobs and daylight saving time.

A SimpleTrigger fires at a time you set and, if you ask, repeats at a fixed interval. It is not a cron expression. A repeat count of 0 fires once. repeatForever() keeps going until the trigger's end time, if it has one. The check for that shape is an interval, not five fields.

import static org.quartz.CronScheduleBuilder.cronSchedule;
import static org.quartz.JobBuilder.newJob;
import static org.quartz.SimpleScheduleBuilder.simpleSchedule;
import static org.quartz.TriggerBuilder.newTrigger;

import java.util.TimeZone;

import org.quartz.JobDetail;
import org.quartz.Scheduler;
import org.quartz.Trigger;
import org.quartz.impl.StdSchedulerFactory;

Scheduler scheduler = new StdSchedulerFactory().getScheduler();

JobDetail nightly = newJob(NightlyJob.class)
    .withIdentity("nightly", "reports")
    .build();

// 03:00:00 UTC every day. The day-of-week field is ?.
Trigger atThreeUtc = newTrigger()
    .withIdentity("nightly", "reports")
    .withSchedule(cronSchedule("0 0 3 * * ?")
        .inTimeZone(TimeZone.getTimeZone("UTC")))
    .build();
scheduler.scheduleJob(nightly, atThreeUtc);

// Monday through Friday, 09:00 in New York. MON-FRI is 2-6, not 1-5.
JobDetail digest = newJob(DigestJob.class)
    .withIdentity("digest", "reports")
    .build();
Trigger weekdays = newTrigger()
    .withIdentity("digest", "reports")
    .withSchedule(cronSchedule("0 0 9 ? * MON-FRI")
        .inTimeZone(TimeZone.getTimeZone("America/New_York")))
    .build();
scheduler.scheduleJob(digest, weekdays);

// Every 15 minutes, repeating from the start time.
JobDetail sync = newJob(SyncJob.class)
    .withIdentity("sync", "reports")
    .build();
Trigger everyFifteen = newTrigger()
    .withIdentity("sync", "reports")
    .startNow()
    .withSchedule(simpleSchedule()
        .withIntervalInMinutes(15)
        .repeatForever())
    .build();
scheduler.scheduleJob(sync, everyFifteen);

scheduler.start();

Read the five fields on the cron tool before you save them. L, W, #, and a year will not mean the same thing there.

Misfires and a full thread pool

org.quartz.jobStore.misfireThreshold is how many milliseconds a trigger may pass its next fire time before Quartz treats it as misfired. The RAMJobStore and JDBC job-store configuration pages both say the default, when the property is absent, is 60000. That is 60 seconds. The properties file in the jar sets the same number.

The default instruction on every trigger type is Trigger.MISFIRE_INSTRUCTION_SMART_POLICY. What that means depends on the trigger.

For a CronTrigger, CronTriggerImpl.updateAfterMisfire reads the smart policy as MISFIRE_INSTRUCTION_FIRE_ONCE_NOW. That instruction says the trigger wants to be fired now, and the method sets the next fire time to the current time. CronScheduleBuilder.withMisfireHandlingInstructionFireAndProceed() selects it. MISFIRE_INSTRUCTION_DO_NOTHING sets the next fire time to the next scheduled time after now, taking any associated Calendar into account, and does not fire now. withMisfireHandlingInstructionDoNothing() selects it. Trigger.MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY tells the scheduler not to treat the trigger as misfired: fire as soon as it can, then update it as if it had fired on time. The javadoc's example is a trigger every 15 seconds that was misfired for 5 minutes, which then fires 20 times to catch up. withMisfireHandlingInstructionIgnoreMisfires() selects it.

Lesson 6 prints MISFIRE_INSTRUCTION_FIRE_NOW in the cron list and says the smart policy is interpreted as that name. The constant on CronTrigger is MISFIRE_INSTRUCTION_FIRE_ONCE_NOW. FIRE_NOW is the SimpleTrigger constant.

For a SimpleTrigger, the smart policy follows the repeat count, as SimpleTriggerImpl.updateAfterMisfire documents it. A repeat count of 0 is MISFIRE_INSTRUCTION_FIRE_NOW. REPEAT_INDEFINITELY is MISFIRE_INSTRUCTION_RESCHEDULE_NEXT_WITH_REMAINING_COUNT. The same javadoc warns that this one, with an end time that arrived during the miss, can leave the trigger with nothing left to fire. A repeat count above 0 is MISFIRE_INSTRUCTION_RESCHEDULE_NOW_WITH_EXISTING_REPEAT_COUNT. MISFIRE_INSTRUCTION_FIRE_NOW on a repeating simple trigger is treated as MISFIRE_INSTRUCTION_RESCHEDULE_NOW_WITH_REMAINING_REPEAT_COUNT.

The thread pool is org.quartz.simpl.SimpleThreadPool unless you replace it. It is a fixed set of threads for the life of the scheduler. org.quartz.threadPool.threadCount is how many jobs can run at once. Tutorial lesson 10 says that if a trigger's time arrives and no thread is free, Quartz waits until one is free, and the job then runs later than it should have. If that wait lasts through the misfire threshold, the trigger misfires. The running job is not stopped.

Concurrency and trigger states

@DisallowConcurrentExecution is placed on the job class. It means executions of that job, identified by its JobKey, must not overlap. While one execution is still going, the job store moves the job's other waiting triggers to BLOCKED. getTriggerState returns BLOCKED for that stored state. They are not acquired until the running execution finishes and the state goes back to waiting. The running execution is not cancelled. That skip does not send mail. The overlap page is prevent overlapping cron jobs.

@PersistJobDataAfterExecution tells the scheduler to write the JobDataMap back when the execution finishes. The annotation's own note says a job that uses it should also use @DisallowConcurrentExecution, so two executions do not race on that map.

Trigger.TriggerState is NONE, NORMAL, PAUSED, COMPLETE, ERROR, and BLOCKED. On a JDBC store, getTriggerState maps the stored value like this: a missing or deleted trigger is NONE; COMPLETE stays COMPLETE; PAUSED and PAUSED_BLOCKED are both PAUSED; ERROR stays ERROR; BLOCKED stays BLOCKED; anything else, including a trigger that is waiting, is NORMAL.

A trigger in PAUSED does not fire. pauseTrigger is what puts it there. standby() is the whole scheduler, and lesson 1 says triggers do not fire until the scheduler has been started, nor while it is paused. A trigger in ERROR is not waiting, so it is not acquired. The job store sets that state when it cannot retrieve the job, and it logs that it is setting the trigger state to ERROR. A trigger in COMPLETE has been marked complete. unscheduleFiringTrigger() on a JobExecutionException asks for the firing trigger to be completed, and unscheduleAllTriggers() asks for every trigger of that job to be completed. None of these states sends an alert.

A run that starts and never returns is cron job stuck or hanging. Quartz will not notice that for you.

A job that throws is logged, not alerted

Job.execute is allowed to throw JobExecutionException. The runner logs that at info: Job {} threw a JobExecutionException. Any other throwable is logged at error: Job {} threw an unhandled Exception. That other throwable is wrapped in a JobExecutionException with refireImmediately set to false. The scheduler keeps running either way. The log line is the record. It does not page anyone.

JobExecutionException tells the scheduler three things. refireImmediately() asks for another execution immediately, using the same context. If that flag is set, the unschedule flags are ignored. unscheduleFiringTrigger() asks for the trigger that just fired to be completed. unscheduleAllTriggers() asks for every trigger of that job to be completed. A new JobExecutionException(cause) leaves all three false, so the schedule continues and the exception is what got logged.

JobListener.jobWasExecuted runs after execute, with the JobExecutionException as the second argument. That argument is null when execute returned. TriggerListener.triggerMisfired runs when a trigger has misfired. The javadoc says time spent in that method delays every other misfire being handled. Both listeners run in this JVM. A process that has already exited does not call them.

What leaves no successful ping

  • The JVM has exited, or shutdown() has been called. That scheduler instance does not start again.
  • start() was never called, spring.quartz.auto-startup is false, or standby() is in effect. Triggers do not fire.
  • The trigger is PAUSED, ERROR, or COMPLETE.
  • @DisallowConcurrentExecution left the trigger BLOCKED because one execution is still running.
  • The misfire instruction was DO_NOTHING, so the missed time was skipped. Or every worker thread was busy past the 60-second threshold, and the trigger misfired.
  • RAMJobStore lost the job on restart, and startup did not schedule it again.
  • spring.quartz.jdbc.initialize-schema=always dropped the tables. Or a changed cron was not written over the stored trigger, because overwrite-existing-jobs is still off.
  • Clustering is off and two replicas each have a scheduler. That case does ping, once per copy, so the check stays up. It is a duplicate run.
  • With clustering on, this node did not acquire the trigger. The node that fires is the one that must ping.
  • The job threw, and nothing sent /fail.
  • The success ping is before the work, or the job caught the exception and returned.
  • CRONNUDGE_URL is unset, or the ping request failed. A failure there must not fail the job, so the check is what notices the gap.
  • The schedule can no longer fire: the end time has passed, a one-shot simple trigger already ran, or the fields never match.

CronNudge does not read the JVM, the logs, or the job store, and it cannot start the scheduler or run the job again. It only knows about pings it receives.

Ping after the work succeeds

The success URL is https://cronnudge.com/ping/YOUR_ID. GET, POST, and HEAD all count. A stored ping answers ok. YOUR_ID is the id in the ping URL. Anyone with that URL can send a ping, so keep it out of the image and out of the repo. Store it in the environment as CRONNUDGE_URL, with no query string and no /start or /fail on the end. The job adds those.

java.net.http.HttpClient is enough. Five seconds is the timeout, on the connect and on the request. A timeout or a connection error returns. It must not fail the job. A ping that never lands is what the check alerts on, after grace.

import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;

import org.quartz.DisallowConcurrentExecution;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

@DisallowConcurrentExecution
public class NightlyJob implements Job {
  private static final HttpClient HTTP = HttpClient.newBuilder()
      .connectTimeout(Duration.ofSeconds(5))
      .build();

  @Override
  public void execute(JobExecutionContext context) throws JobExecutionException {
    String base = System.getenv("CRONNUDGE_URL");
    ping(base, "/start"); // optional; delete this line for a success ping only
    try {
      export();
    } catch (Exception ex) {
      ping(base, "/fail");
      throw new JobExecutionException(ex);
    }
    ping(base, "");
  }

  private static void ping(String base, String path) {
    if (base == null || base.isBlank()) {
      return;
    }
    HttpRequest request = HttpRequest.newBuilder(URI.create(base + path))
        .timeout(Duration.ofSeconds(5))
        .GET()
        .build();
    try {
      HTTP.send(request, HttpResponse.BodyHandlers.discarding());
    } catch (InterruptedException ex) {
      Thread.currentThread().interrupt();
    } catch (Exception ex) {
      return;
    }
  }
}

GET is what newBuilder sends. POST and HEAD count the same way. Rethrow as JobExecutionException after /fail. An exception you swallow is a normal return, and the info line Job {} threw a JobExecutionException never happens. /fail marks the check down immediately when it was not already down. A second /fail while it is already down does not send another alert. A later success is the recovery: one alert down, one when it comes back. A paused check stores the ping and does not alert.

?exit= is the other failure signal. ping(base, "?exit=1") instead of ping(base, "/fail"), not both on the same request. 0 is a success. 1 through 255 marks the check down when it was not already down. Anything else is ignored, and the ping stays a success.

An Idempotency-Key header is cut at 128 characters and matched per check. A repeat of the same key is a replay. It does not record a second ping and it does not send a second alert. A new run needs a new key.

triggerMisfired is the path for a fire that never entered execute. Register the listener before start(). The first /fail it sends while the check is up is the down alert. It runs only while this JVM is alive. A dead JVM sends nothing. That silence is the missed success ping, and it is the alert after grace. One down alert. A later success is the recovery.

public void triggerMisfired(org.quartz.Trigger trigger) {
  ping(System.getenv("CRONNUDGE_URL"), "/fail");
}

scheduler.getListenerManager().addTriggerListener(...) registers it. The other TriggerListener methods still have to exist. This one is the misfire.

/start and a max runtime

/start records a start. It is not a success. While that start is still open, the deadline is the earlier of the schedule deadline and the start plus grace. The grace used for that run is at least 60 seconds. The alert is down, not stuck. Omit /start and the only clock is the schedule.

Turn on "Track start and finish," or set Max runtime (seconds), which turns run tracking on. A second /start while a run is open is then an overlap alert, and it does not close the first run. A success or /fail closes the open runs. Two success pings alone do not raise an overlap alert.

Max runtime is 1 second through 7 days. With a run open and a max runtime set, the deadline becomes that start plus the max runtime. It is not the earlier of that and the schedule. No finish means one stuck alert, once for that start, and the check goes down. A later success is the recovery. A job the scheduler never starts never calls /start, so it cannot go stuck. Silence until the schedule deadline is the alert. Free includes run tracking on 3 checks. Pro removes that cap. Details are in assertions, runs, and agents.

Set max runtime a little past the longest healthy run. @DisallowConcurrentExecution blocks the next fire while the first is still going, and that blocked fire sends no /start. The alert you get is the missing success ping, or the stuck alert if the open run has a max runtime.

Match the check to the schedule

CronNudge stores five fields, minute first, or an interval in seconds. It has no year, no seconds field, and no L, W, or #. Sunday on the check is 0. Monday is 1. Friday is 5. Drop the seconds field. Replace ? with *. Translate the weekday numbers. Copy the timezone onto a cron check. An interval check stores UTC. The timezone field on the form is for cron.

Quartz day of week Weekday Day of week on the check
SUN or 1 Sunday 0
MON or 2 Monday 1
TUE or 3 Tuesday 2
WED or 4 Wednesday 3
THU or 5 Thursday 4
FRI or 6 Friday 5
SAT or 7 Saturday 6

The form's periods are 5 minutes, 15 minutes, 30 minutes, 1 hour, 6 hours, 1 day, and 1 week. Grace is none, 1 minute, 5 minutes (the default), 15 minutes, or 1 hour. Anything else, from the plan minimum up to 31 days for an interval and from 0 through 7 days for grace, is an API value, and the API is on Pro. Creating a check sets the first deadline from that moment. A success then moves the deadline. An interval counts from the last success. A cron expression uses the next occurrence after that success, then adds grace. The cron tool lists the next runs before grace is added.

Every night at 03:00 UTC. 0 0 3 * * ? with inTimeZone(TimeZone.getTimeZone("UTC")). Check 0 3 * * *, timezone UTC. A success at 03:02 is inside the default 5 minutes of grace. The next deadline is 03:05 the next night. A night that never pings alerts at 03:05.

Weekdays at 09:00 in New York. 0 0 9 ? * MON-FRI, which is the same days as 0 0 9 ? * 2-6, with America/New_York. Check 0 9 * * 1-5 in America/New_York. A success at 09:02 is inside the default grace. The next deadline is 09:05 on the next weekday. Saturday and Sunday are not expected. 0 0 9 ? * 1-5 on the Quartz trigger is Sunday through Thursday, because 1 is Sunday. 0 9 * * 2-6 on the check is Tuesday through Saturday. That is the number range from the Quartz expression copied unchanged, and it is the wrong string for the check.

Every 15 minutes. A SimpleTrigger with withIntervalInMinutes(15) and repeatForever(). The check is an interval of 15 minutes. The gap is longer than Free's 5-minute minimum, so it is a Free check. The trigger repeats from its start time. The check counts 15 minutes from the last success, plus grace, and it stores UTC. A cron trigger 0 0/15 * * * ? is a different schedule, */15 * * * *, on the clock at :00, :15, :30, and :45. That expression is also a Free check. Use the interval when the job is a simple trigger, and the cron when the job is a cron trigger.

Every minute, or every 30 seconds. 0 * * * * ? drops the seconds field and becomes * * * * *. It is valid cron, and it is not a Free check. Pro's minimum is 1 minute. 0/30 * * * * ? is every 30 seconds. It is under Free's 5-minute minimum and under Pro's 1-minute minimum. It cannot be a check at that cadence. CronNudge does not store a seconds field.

Free is 10 checks, a 5-minute minimum interval, email plus one Slack or Discord channel, and run tracking on 3 checks. Pro is $12 a month for 100 checks, a 1-minute minimum, signed webhooks, and the API. Details are on pricing.

FAQ

Why is a Quartz job not firing? The scheduler is inside the JVM. A scheduler that was just created is in standby and does not fire triggers until start() is called. standby() puts it back in that mode. shutdown() stops it, and that instance cannot be started again. If the JVM has exited, nothing runs. A trigger in PAUSED, ERROR, or COMPLETE does not fire. A job with DisallowConcurrentExecution leaves other triggers BLOCKED while one execution is still running. The misfire threshold defaults to 60000 milliseconds. RAMJobStore drops every job and trigger when the process ends. Two replicas on the default in-memory store are two schedulers, and each one fires.

What do misfireThreshold and the misfire instructions do? org.quartz.jobStore.misfireThreshold is how many milliseconds a trigger may pass its next fire time before Quartz treats it as misfired. The documented default is 60000, which is 60 seconds. The default instruction is MISFIRE_INSTRUCTION_SMART_POLICY. For a CronTrigger that means MISFIRE_INSTRUCTION_FIRE_ONCE_NOW, which sets the next fire time to now. MISFIRE_INSTRUCTION_DO_NOTHING moves the next fire time to the next scheduled time after now and does not fire now. MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY fires as soon as it can and can catch up with several rapid firings. For a SimpleTrigger, a repeat count of 0 uses FIRE_NOW, an indefinite repeat uses RESCHEDULE_NEXT_WITH_REMAINING_COUNT, and a repeat count above 0 uses RESCHEDULE_NOW_WITH_EXISTING_REPEAT_COUNT. If every worker thread is busy through the misfire threshold, the trigger misfires.

Why does the same Quartz job run on two nodes? Clustering is off unless org.quartz.jobStore.isClustered is true, and clustering only works with a JDBC job store. The default store is RAMJobStore, which each JVM keeps to itself, so each call to start() fires its own copy. With clustering on, the nodes share one database and one node fires each time. The clocks have to stay within a second of each other. A non-clustered scheduler must not be started against those same tables. DisallowConcurrentExecution is separate: it blocks another execution of that job while one is still running. A second success ping does not raise an overlap alert. A second /start does, once run tracking is on.

How does a Quartz cron expression become a five-field check? CronNudge stores five fields, minute first, and Sunday is 0. Quartz puts seconds first. One of the day-of-month and day-of-week fields is ?. Day of week is 1 for Sunday through 7 for Saturday. Drop the seconds field, replace ? with *, and translate the weekday: Quartz 1 is 0 on the check, and Quartz 2 through 7 are 1 through 6. MON-FRI at 09:00 is the check 0 9 * * 1-5. Put the same time zone on the cron check. The expression uses the JVM default zone when inTimeZone was not called. L, W, #, and a year cannot be stored on the check. An interval of 15 minutes is a Free check. A schedule finer than Free's 5-minute minimum, or Pro's 1-minute minimum, cannot be a check at that cadence. Every 30 seconds is under both minimums.

Does a job that throws alert me? Only if a ping is sent. Quartz logs a JobExecutionException at info, and any other exception at error, and the scheduler keeps running. refireImmediately asks for another execution immediately, and that flag overrides the unschedule flags. unscheduleAllTriggers asks for every trigger of that job to be completed. Send /fail, or ?exit= with a code from 1 to 255, and rethrow as a JobExecutionException so the log line still happens. The first /fail while the check is up is one down alert. A second /fail while it is already down does not send another. triggerMisfired can send /fail, and that listener runs only while this JVM is alive. A dead JVM sends nothing. The missed success ping is the down alert after grace, and a later success is the recovery.

Can CronNudge see the job store or start the scheduler? No. It does not read the JVM, the logs, or the job store, and it cannot start the scheduler or run the job again. It only knows about pings it receives. The Quartz log is where the exception shows up.


The scheduler only runs while the JVM does. The ping is how you hear about the run that never called home. Create the check, or read the five fields on the cron tool. Related: how to monitor cron jobs, crontab not running, cron expression examples, Spring scheduled tasks, Hangfire recurring jobs, prevent overlapping cron jobs, and cron job stuck or hanging.