talira

Open source job scheduling library for Java

open sourceApache-2.0self-hostablefree

Quartz is an open source job scheduling library that can be embedded in almost any Java application. Jobs are Java classes that run when a trigger fires: at a time of day to the millisecond, on certain days of the week, month or year, skipping dates in a registered calendar such as business holidays, or repeated a set number of times, until a date, indefinitely or at an interval. Jobs and triggers have names and groups, one job can have several triggers, listeners are notified before and after each run, and a completion code can ask for a job to run again. Jobs can be kept in memory or in a database through its JobStore, take part in JTA and XA transactions, and run on a cluster of schedulers with load balancing and fail-over. Quartz 2.5 targets Java 11 and Jakarta EE; 2.4 supports Java 8.

Problems it solves

  • run a Java job every weekday at 11:30 pm except public holidays
  • schedule thousands of recurring jobs inside my Java application
  • keep scheduled jobs running when one of our Java servers goes down
  • persist scheduled jobs in the database so they survive a restart

Features

  • time, day and calendar-based triggers
  • repeating and interval schedules
  • holiday calendars to skip dates
  • named jobs and triggers in groups
  • job and trigger listeners
  • persistent JobStore in a database
  • JTA and XA transactions
  • clustering with load balancing and fail-over
  • embedded, in an app server or stand-alone