Skip to content

dlebrero/clj-quartz-terracotta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

clj-quartz-terracotta

Simple Clojure library to avoid AOT compilation when using Quartz and Terracotta.

Usage

Add clj-quartz-terracotta to your project.clj:

[clj-quartz-terracotta "0.2.0"]

Plus your favourite version of Quartzite:

[clojurewerkz/quartzite "1.0.1"]

Then just use the fn-call function to create the job:

    (ns some-namespace
      (:require [clojurewerkz.quartzite.jobs :as j]
                [clj-quartz-terracotta.core :as tc]))

     (def job (j/build
                (tc/fn-call `println "hi there")
                (j/with-identity (j/key "some.job.identity")))

Note that the first parameter must be a full qualified function, as it will need to be resolved in any JVM in the Terracotta cluster. The created job will be a StatefulJob

License

Copyright © 2012 Daniel Lebrero

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

About

Some utils for running Quartz in Terracotta

Resources

Stars

Watchers

Forks

Packages

No packages published