Home

Awesome

jobesque

Jobesque is a simple Clojure job scheduler, built on top of cron4j. The scheduling pattern is the same than the one used in crontab entries, on Unix-like operating systems.

Build Status

Usage

Jobesque goal is to be a dead easy job scheduler solution for Clojure.

Artifact

Artifacts are released to Clojars. It's a default repository for Leiningen but you can use it with other build tools, like Maven:

<repository>
  <id>clojars.org</id>
  <url>http://clojars.org/repo</url>
</repository>

With Leiningen:

[jobesque "0.0.2"]

With Maven:

<dependency>
  <groupId>jobesque</groupId>
  <artifactId>jobesque</artifactId>
  <version>0.0.2</version>
</dependency>

Quickstart

As you can see in the example below, only four functions are required to work with jobesque:

Example

(require '[jobesque.core :as jobs])

; Initialize the scheduler
(jobs/initialize)

; Schedule a job every minute
(jobs/schedule "* * * * *" (fn [] (println "A simple task.")))

; And start the scheduler
(jobs/start)

; Do something else...

; Stop the scheduler when not needed anymore
(jobs/stop)

The scheduling pattern

A pattern is divided in five values, in the given order :

Special characters

Examples

Jobs

To be documented.

List

To be documented.

Job informations

To be documented.

Schedule

To be documented.

Deschedule

To be documented.

Reschedule

To be documented.

Roadmap

0.0.1

0.0.2

0.1.0

0.1.1

0.1.2

See also

You can also try:

License

Copyright (C) 2012 Gaylord Mazelier

Distributed under the Eclipse Public License, the same as Clojure.