ArticleslgStudy

computer science

JobRunr

JobRunr is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand JobRunr rather than just read about it. In short: JobRunr is an open-source job-scheduling library for the Java platform that lets developers enqueue, delay, or run recurring background tasks across one or many JVMs while persisting state in a relational or NoSQL data store. History JobRunr was first released in April 2020 by Belgian developer Ronald Dehuysser.

Key takeaways

  • JobRunr belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect JobRunr to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of JobRunr from memory before moving on to harder problems.

Reference excerpt

JobRunr is an open-source job-scheduling library for the Java platform that lets developers enqueue, delay, or run recurring background tasks across one or many JVMs while persisting state in a relational or NoSQL data store.

History JobRunr was first released in April 2020 by Belgian developer Ronald Dehuysser. The project has become a popular alternative to Quartz Scheduler and Spring Batch for cloud-native workloads because of its lightweight API, its integration with frameworks such as Spring or Quarkus, and embedded dashboard. Dehuysser released the initial public version of JobRunr on GitHub during the early COVID-19 lockdowns, positioning it as "Hangfire for Java." Version 4.0 was the first major milestone and was released in September 2021. InfoQ reported that the release added a job-analysis performance mode, static-method lambda support and optional byte-code caching, together with first-class starters for Spring Boot, Quarkus, and Micronaut. Six months later, JobRunr 5.0 shipped with default-retry configuration, cron extensions supporting "last-day" semantics and an officially supported Spring Native starter. The update also introduced Duration-based recurrent scheduling and optional MDC propagation in the dashboard logs. JobRunr 6.0 (February 2023) focused on developer ergonomics: a fluent JobBuilder API, arbitrary job labels, an opt-in Micrometer metrics bridge and performance tweaks that halved enqueue latency in load tests. JobRunr 7.0 (May 2024) added support for the virtual threads of JDK 21 and switches the worker pool to them automatically when the JVM supports it. It also replaced random UUIDs with time-based UUIDs to reduce database-index fragmentation. The release also moved the @Recurring annotation into the core module and introduced an InMemoryStorageProvider for rapid CI pipelines. Version 8.0 (July 2025) introduced carbon-aware job scheduling, which uses CO₂ intensity forecasts from the European electricity grid to shift discretionary workloads into periods of cleaner energy. JVM Weekly described the feature as part of a broader movement in the JVM ecosystem toward sustainable computing. The release also added Kotlin serialization support, a redesigned dashboard notification centre, Kubernetes autoscaling metrics with KEDA integration, and a multi-cluster dashboard for monitoring several JobRunr installations from a single console. Version 8.5 (March 2026) simplified Kotlin support and reduced startup times, while the Pro edition gained external job support and dashboard audit logs. Version 8.6 (May 2026) added support for JDK 26 and Quarkus 3.33 LTS, and improved perfermance for recurring jobs. Version 9.0 (September 2026) added a chart view to the job history in the dashboard, which shows every attempt of a job and each of its durable steps on a timeline. The release added support for Micronaut 5 and Quarkus 3.40 LTS. The Pro edition gained job analytics in the dashboard, the option to pause and resume a running batch job, and faster job pickup on PostgreSQL through LISTEN/NOTIFY instead of network multicast. Version 9 is the last open-source release that supports Java 8.

Features JobRunr is used for common background-processing tasks, sending email batches, PDF generation, ETL pipelines or asynchronous REST callbacks, without requiring a separate service bus. Jobs are written as ordinary Java 8 lambdas or method references; at run time the library inspects the byte-code with ASM, serialises the invocation metadata to JSON and stores it via a pluggable StorageProvider (Relational databases, MongoDB, or in-memory). Its main features include:

Simple API: three one-liners (enqueue, schedule, scheduleRecurrently) and a more expressive fluent builder added in v 6.0 for complex triggers. Distributed execution: optimistic locking ensures that a job is processed by only one server at a time, even when multiple BackgroundJobServer instances poll the same table or collection. Dashboard: built-in web server that shows live job graphs, retries and server-health metrics and, since version 5.0, MDC variables for trace propagation. Framework integrations: Spring Boot starter (native-image aware), Quarkus extension, Micronaut bean, Jakarta EE CDI wiring and a JUnit 5 test harness. Observability: optional Micrometer timers and counters for succeeded, failed and enqueued jobs; structured logs; and SQL-level telemetry. Performance options: virtual threads (since version 7.0), time-based UUIDs, cached job analyses, batched SQL and configurable thread counts per server.

Carbon-aware scheduling Introduced in version 8.0, carbon-aware scheduling lets developers specify a time window rather than a fixed execution time for recurring jobs. JobRunr then queries CO₂ intensity forecasts, and shifts job execution into the period with the lowest expected emissions. Jobs awaiting an optimal window appear in the dashboard with a green leaf indicator, and operators can see which region's forecast was used. The feature is activated by adding a margin expression such as [PT1H/PT3H] to a cron definition, or by using the CarbonAware.dailyBetween helper method.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with JobRunr

Start with the simplest possible case. Write down what JobRunr claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to JobRunr before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about JobRunr ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of JobRunr

In research
JobRunr appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses JobRunr in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
JobRunr is common in secondary-school and first-year university syllabi. It links to neighbouring topics Free software programmed in Java, Software using the Apache license, so understanding it makes those chapters shorter.
In everyday life
Look for JobRunr outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “JobRunr” →

How to study JobRunr in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what JobRunr means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain JobRunr out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is JobRunr in simple terms?

JobRunr is an open-source job-scheduling library for the Java platform that lets developers enqueue, delay, or run recurring background tasks across one or many JVMs while persisting state in a relational or NoSQL data store. History JobRunr was first released in April 2020 by Belgian developer Ron…

Why does JobRunr matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study JobRunr?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on JobRunr.

Tags

  • Free software programmed in Java
  • Software using the Apache license

Keep exploring