(make-cron job-class)
(make-cron job-class
{:keys [job-key trigger-key schedule]
:or {job-key "cron.job.1"
trigger-key "cron.trigger.1"
schedule "0 0 0 0 0 ?"}})
构造定时任务 schedule为crontab格式 "0 0/5 * * *?"表示每5分钟运行一次 "0 5 * * *?" 表示每个整点的05分运行 参考: http://www.quartz-scheduler.org/documentation/quartz-2.3.0/tutorials/tutorial-lesson-06.html
构造定时任务 schedule为crontab格式 "0 0/5 * * *?"表示每5分钟运行一次 "0 5 * * *?" 表示每个整点的05分运行 参考: http://www.quartz-scheduler.org/documentation/quartz-2.3.0/tutorials/tutorial-lesson-06.html
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close