On this page
Say hi to JobRunr v9.1.0 and JobRunr Pro v9.1.0! This release moves JobLambda parsing to the JDK’s built-in Class-File API on Java 25 and higher so you can drop ASM from your dependencies, brings official Quarkus 4 support, and makes BackgroundJobServer shut down immediately when your JVM hits an unrecoverable Error. JobRunr Pro 9.1.0 upgrades SlidingTimeWindowRateLimiter to account for job processing duration and exposes the previous job and its result directly on JobContext in job chains.
Before you bump the version, check the upgrade notes below for one Quarkus property rename and a few Pro database and API updates.
Let’s dig in.
JobLambda Parsing With the JDK 25+ Class-File API (ASM Optional)
When you write BackgroundJob.enqueue(() -> invoiceService.send(id)), JobRunr inspects the lambda’s bytecode to extract the target class, method name, and arguments so the job can be serialized to your database and executed on another node. Developers occasionally call that part of JobRunr “black magic”, and historically it relied on an external bytecode library, ASM (org.ow2.asm:asm).
With Java 25 shipping the standard Class-File API (java.lang.classfile), JobRunr 9.1.0 no longer needs ASM on modern JVMs PR #1638. The jobrunr artifact is a Multi-Release JAR: on JDK 8 through 24, JobDetailsGeneratorFactory still creates JobDetailsAsmGenerator, while on JDK 25 and higher the JVM automatically loads META-INF/versions/25/org/jobrunr/jobs/details/JobDetailsGeneratorFactory.class and switches to JobDetailsClassFileApiGenerator.
Because the same artifact still supports older Java versions, org.ow2.asm:asm remains declared in the POM for compatibility. If your application runs on JDK 25 or higher, you can now exclude ASM cleanly from your build:
<dependency>
<groupId>org.jobrunr</groupId>
<artifactId>jobrunr</artifactId>
<version>9.1.0</version>
<exclusions>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
</exclusion>
</exclusions>
</dependency>
implementation('org.jobrunr:jobrunr:9.1.0') {
exclude group: 'org.ow2.asm', module: 'asm'
}
One fewer bytecode dependency to track, upgrade, or reconcile.
Official Quarkus 4 Support
JobRunr 9.1.0 officially supports Quarkus 4, including its move from Jackson 2 to Jackson 3, while keeping the extension compatible with Quarkus 3 as well PR #1654. Alongside core support, several Quarkus-specific improvements are included in this release:
- Better
JobLambdasupport for Quarkus 4 native builds. PR #1661 - Resolved config placeholders for
@RecurringIDs. Defining an annotation-based recurring job with a placeholder such as@Recurring(id = "${my-job.id}")previously passed the unresolved placeholder string intoRecurringJob, failing ID validation at startup. It now uses the resolved ID. PR #1650 - Clearer SmallRye health property name. Previously, the build-time property to disable JobRunr’s SmallRye health check was accidentally exposed as
quarkus.jobrunr, which looked like it disabled JobRunr altogether. It is nowquarkus.jobrunr.health.enabled. PR #1635
⚠️ Quarkus upgrade note: if you previously configured the SmallRye health check property as
quarkus.jobrunr=false, update it toquarkus.jobrunr.health.enabled=falsebefore upgrading to 9.1.0.
Check the Quarkus extension documentation for the full list of configuration properties.
BackgroundJobServer Stops Immediately on Unrecoverable Errors
When a JVM runs out of heap space (OutOfMemoryError) or hits another java.lang.Error, the worst outcome is a half-alive worker node that stops processing jobs silently while other threads limp along. Previously, JobHandler and ServerZooKeeper caught Exception rather than Throwable, so an Error inside a polling or zookeeper task could kill that scheduled task without calling backgroundJobServer.stop().
In v9.1.0, both JobHandler and ServerZooKeeper catch Throwable, log a fatal message, and immediately shut down the BackgroundJobServer PR #1656. Here is a real log capture from a 9.1.0 instance encountering an OutOfMemoryError during a poll cycle:
11:31:07 [backgroundjob-zookeeper-pool-1] ERROR org.jobrunr.server.JobSteward - FATAL - JobRunr encountered an unrecoverable OutOfMemoryError. Shutting down.
java.lang.OutOfMemoryError: Java heap space
at org.jobrunr.storage.ThreadSafeStorageProvider.getJobsToProcess(ThreadSafeStorageProvider.java:163)
...
11:31:07 [backgroundjob-zookeeper-pool-1] INFO org.jobrunr.server.BackgroundJobServer - BackgroundJobServer (f262e6aa-d5d9-4972-aa64-47f14ae85952) stopping (may take about PT10S)
Stopping the server cleanly lets your health checks and orchestrator replace the node quickly while healthy servers in the cluster take over the queued work.
Immediate Enqueue When scheduleAt Is in the Past
If your code computes a target timestamp and calls BackgroundJob.schedule(runAt, ...) or scheduleIn(Duration.ZERO), that timestamp can easily end up equal to Instant.now() or slightly in the past. Previously, JobRunr persisted the job in SCHEDULED state and waited for the next scheduled-job poll cycle before moving it to ENQUEUED.
In v9.1.0, whenever a non-carbon-aware job is scheduled for now or a moment in the past, JobRunr creates it in SCHEDULED state and immediately transitions it to ENQUEUED on creation PR #1652. That works across both BackgroundJob.schedule(...) and JobBuilder, so the job starts running right away without waiting for a poll tick:

Dashboard, Stability, and Bug Fixes
Several targeted fixes make both the dashboard and the SQL storage layer safer and more predictable in production:
- Accurate process CPU load on SQL heartbeats. On SQL storage providers,
BackgroundJobServerTablepreviously wrotesystemCpuLoadinto theprocessCpuLoadcolumn on every heartbeat. It now stores the actualprocessCpuLoadPR #1649, and the dashboard now handles negative server statistics cleanly when the OS reports unavailable metrics PR #1660. - Dashboard 500 error hardening and SSE cleanup. Unhandled REST exceptions in the dashboard now return a generic 500 message instead of printing stack traces into the HTTP response body, while logging the full exception server-side for operators PR #1657. When the SSE connection limit is exceeded, the dashboard now sends a
-1content length and closes the HTTP exchange cleanly instead of leaving connections stalled PR #1658. - Dashboard notification badge colors and beta alerts. The notification icon color now reflects the highest-severity active notification, and non-stable releases get their own separate notification PR #1640.
- SQL statement cache keyed by statement text. JobRunr’s parsed SQL cache previously keyed entries by
String.hashCode(). Keying directly by the prefixed SQL text eliminates any risk of a 32-bit hash collision serving the wrong cached statement PR #1645. - No more CPU spin on interrupted retries.
Exceptions.retryOnExceptioncould spin at 100% CPU if the calling thread’s interrupt flag was already set (reachable during MySQL or MariaDB server shutdown). It now preserves the interrupt flag and aborts cleanly PR #1646. - Jackson 3 immutable sublists and
Durationdeserialization.Jackson3JsonMappernow allowsList.of(...).subList(...)(java.util.ImmutableCollections$SubList) out of the box PR #1643, alongside a fix forDurationdeserialization PR #1644 and the Gradletest-fixturesartifact name PR #1662.
Maintenance
- No more
jobrunr-bom. We stopped publishingjobrunr-bombecause it mainly listed optional compile-only dependencies that caused vulnerability scanners to raise false positives on JobRunr projects PR #1655. - Dependency upgrades across the project PR #1663.
A big thank you to @ThomasVerhoeven1998, @tgeurtsen (for their first contribution!), and @Ashish-CodeJourney for contributing to this release.
💼 New in JobRunr Pro v9.1.0
Duration-Aware SlidingTimeWindowRateLimiter
When you put a SlidingTimeWindowRateLimiter in front of a rate-limited third-party API, fast jobs and slow jobs behave very differently. Previously, SlidingTimeWindowRateLimiter only accounted for when jobs entered processing. If a job took several seconds to finish an API call, the rate limiter did not factor its actual processing duration into the sliding window calculation.
In JobRunr Pro 9.1.0, SlidingTimeWindowRateLimiter now tracks enqueued jobs, currently processing jobs, and completed jobs together with their processingDuration [PR #1023]. Backing this calculation is a refreshed composite index (jobrunr_job_rate_limiter_idx on rateLimiter, state, updatedAt, mutex, processingDuration) so rate-limiter queries stay fast even on busy clusters.
Configuration stays just as simple:
import static org.jobrunr.jobs.ratelimiters.SlidingTimeWindowRateLimiterConfiguration.slidingTimeWindowRateLimiter;
JobRunrPro.configure()
.useStorageProvider(storageProvider)
.useRateLimiter(slidingTimeWindowRateLimiter("payment-api", 2, Duration.ofSeconds(10)))
.useBackgroundJobServer()
.useDashboard()
.initialize();
jobrunr.jobs.rate-limiter.sliding-time-window-rate-limiter.payment-api=2/PT10S
We ran 6 simulated 4-second payment API jobs through that 2/PT10S limiter on JobRunr Pro 9.1.0. Two jobs ran per 10-second window with steady spacing (11:33:29/30, 11:33:39/40, 11:33:49/50), and the Pro dashboard shows the clean cadence right on the Succeeded jobs view:

Access the Awaited Job and Its Result Directly From JobContext
In a JobRunr Pro job chain, a continuation job often needs the return value from the job it waited on. Until now, that meant injecting StorageProvider into your service, calling context.getAwaitedJobId(), fetching the parent Job manually, and then calling getResult().
In Pro 9.1.0, JobContext exposes both getAwaitedJob() (Optional<Job>) and getAwaitedJobResult() (Optional<T>) directly [PR #1019]. You no longer need to inject StorageProvider into your business services just to read an upstream result:
// Before: needed StorageProvider injected just to fetch the parent job
public void notifyFinanceTeam(JobContext context) {
UUID awaitedJobId = context.getAwaitedJobId();
Job awaitedJob = storageProvider.getJobById(awaitedJobId);
ReportSummary summary = awaitedJob.getResult();
sendSummary(summary);
}
// Now in Pro 9.1.0: read the awaited job and result straight from JobContext
public void notifyFinanceTeam(JobContext context) {
Optional<Job> awaitedJob = context.getAwaitedJob();
Optional<ReportSummary> summary = context.getAwaitedJobResult();
summary.ifPresent(report -> {
context.logger().info("Previous job '" + awaitedJob.map(Job::getJobName).orElse("unknown")
+ "' finished with result: " + report);
sendSummary(report);
});
}
Here is that exact continuation job running on JobRunr Pro 9.1.0, with the upstream ReportSummary result logged straight from context.getAwaitedJobResult():

DB2 and Multi-Cluster Dashboard Improvements
- DB2 column alignment. On IBM DB2, JobRunr Pro now uses
VARCHARinstead ofNVARCHARacross string columns and aligns column sizes consistently [PR #1013]. - Multi-Cluster Dashboard redirect. The Multi-Cluster Dashboard now redirects on
/api/open-integration[PR #1025]. - All OSS 9.1.0 features and bug fixes above (JDK 25+ Class-File API with optional ASM, Quarkus 4 support, immediate shutdown on
Error, immediate past-schedule enqueue, and all dashboard and SQL fixes).
⚠️ Key considerations before upgrading JobRunr Pro:
- New index migration across all SQL databases:
v050__alter_job_table_recreate_rate_limiter_idx.sqldrops and recreatesjobrunr_job_rate_limiter_idxonjobrunr_jobs. On very large tables, plan your rollout window accordingly.- DB2 table reorg:
v049__switch_db2_columns_to_varchar.sqlconvertsNVARCHARcolumns toVARCHARand runsREORG TABLEon JobRunr tables.JobContext#getAwaitedJob()return type change: this method (deprecated in v8 when it returned aUUID, listed asgetAwaitingJobin the GitHub release notes) now returnsOptional<Job>. UsegetAwaitedJobId()if you only want theUUID, orgetAwaitedJobResult()for the typed result.- Custom
StorageProviderimplementations: a few new methods were added to theStorageProviderinterface. If you maintain a custom implementation, update it to implement them.
How to Upgrade
Bump your dependency version to 9.1.0:
<dependency>
<groupId>org.jobrunr</groupId>
<artifactId>jobrunr</artifactId>
<version>9.1.0</version>
</dependency>
implementation 'org.jobrunr:jobrunr:9.1.0'
If you run on JDK 25 or higher, feel free to add the org.ow2.asm:asm exclusion shown above. Quarkus users should double-check whether they set quarkus.jobrunr for SmallRye health and migrate it to quarkus.jobrunr.health.enabled. And if you run JobRunr Pro on a large SQL jobs table, leave a little breathing room on first startup for the updated rate-limiter index migration.
Stay tuned for more updates, and let us know what you think!
Full changelog available here: 👉 GitHub Release Notes 9.1.0




