A cron-like schedule (with cron-style string parser) for clojure
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
src/cl_cronlike
test/cl_cronlike/test
.gitignore
README.md
project.clj

README.md

clj-cronlike

clj-cronlike is a clojure library that allows for the scheduling of functions to be called using a Vixie Cron-style schedule string.

Usage

Add [cl-cronlike "0.1.7"] to your project file if you are using lien.

(ns foo
  (:require [cl-cronlike.core :as cron]))
  
(defn hello! []
  (println "Hello world!" (System/currentTimeMillis)))
  
(let [runner (cron/create-runner)]
  (cron/start-runner runner)
  (cron/add-function runner "0,15,30,45 * * * *" :hello hello!)
  ...
  (cron/remove-function runner :hello)
  (cron/stop-runner runner))

See the docs for more. http://kognate.github.com/clj-cronlike/doc/

License

Copyright (C) 2012 - 2015 Joshua B. Smith

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