Skip to content

Instantly share code, notes, and snippets.

@michaelklishin
Last active October 10, 2015 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelklishin/e565e0520803ef7f8d3f to your computer and use it in GitHub Desktop.
Save michaelklishin/e565e0520803ef7f8d3f to your computer and use it in GitHub Desktop.
(ns my.service
(:require [clojurewerkz.quartzite.scheduler :as qs]
[clojurewerkz.quartzite.jobs :as j]))
(defjob BillingJob
[ctx]
(comment "Implement me"))
(defn -main
[& m]
(qs/initialize)
(qs/start)
(let [job (j/build
(j/of-type BillingJob)
(j/using-job-data {"account-id" "356dbd7b08bbd5c449505e5378538b5d06e68eb1" "rollover?" true})
(j/with-identity (j/key "jobs.billing.356dbd7b08bbd5c449505e5378538b5d06e68eb1")))]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment