Questions tagged [quartzite]

Quartzite is a Clojure scheduling library built on top of Quartz Scheduler. NOTE: This is the tag for the Clojure library. If your question is about Clojure, use this instead of [quartz-scheduler] (unless you're interoping with the Java library directly).

Quartzite is a Clojure scheduling library built on top of Quartz Scheduler.

For more info, visit https://github.com/michaelklishin/quartzite

See also:

6 questions
3
votes
1 answer

Attempt to add annotation to defrecord defined class in macro

I'm attempting to create a macro similar to the Quartzite defjob macro that creates the Job class with the @DisallowConcurrentExecution annotation added to it. The code works from the repl, but not inside the macro. This works... user=> (defrecord…
BillRobertson42
  • 12,602
  • 4
  • 40
  • 57
2
votes
1 answer

Clojure - schedule a job every Tuesday

I am using quartzite, and I need to schedule a job every tuesday morning (say at 10 AM). I have the code for the job, but I'm not sure how to schedule it. Should I use the daily or the calendar schedulers ? Should I use with-interval-in-days (how)…
nha
  • 17,623
  • 13
  • 87
  • 133
1
vote
1 answer

clojure, how to reduce repeated code (potentially using macro)

TL;DR how to reduce below repeated code, like create two job / trigger from job-inventory, instead of repeat twice and create terms ;; deps in project.clj ;; [clojurewerkz/quartzite "2.1.0"] (ns hello.scheduler (:require…
Jack Wu
  • 447
  • 4
  • 14
1
vote
0 answers

In quartz how to fetch/delete jobs by using name macther class?

I am using Quartz 2.1.7 (In Clojure using Quartzite library). I have jobs that have ids named like "abc/xyz". And I would like to Fetch all jobs whose id starts with "abc" Delete all jobs whose id starts with "abc" I saw the Quartz API, there is…
firesofmay
  • 582
  • 1
  • 3
  • 16
1
vote
2 answers

Quartz ignores time of day for daily schedule when today matches day of week

I'm trying to schedule daily Quartz jobs at the same time on certain days of the week, e.g. 9am every Tuesday or 10am on Tuesdays and Wednesdays. Quartz's firing times are unexpected when the weekday matches the weekday of today's date. Triggers…
Petrus Theron
  • 27,855
  • 36
  • 153
  • 287
0
votes
1 answer

got "incorrect arity 1 for clojurewerkz.quartzite.jobs/of-type" when use the cron example of quartzite?

I try to use the cron example as the get start page: http://clojurequartz.info/articles/getting_started.html (defjob NoOpJob [ctx] (comment "Does nothing")) (defn -main [& m] (let [s (-> (qs/initialize) qs/start) job (j/build …
wang kai
  • 1,673
  • 3
  • 12
  • 21