Skip to content
Snippets Groups Projects
Commit fa2f5e2d authored by Allen Gilliland's avatar Allen Gilliland
Browse files

update task initialization code to prevent rescheduling of tasks.

parent af8456a2
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,8 @@
set
(map (fn [events-ns]
(log/info "\tloading tasks namespace: " events-ns)
(require events-ns)))
(require events-ns)
((ns-resolve events-ns (symbol "task-init")))))
dorun))
(defn start-scheduler!
......
......@@ -27,8 +27,7 @@
(catch Exception e
(log/error "Error syncing database: " (:id database) e))))))
;; this is what actually adds our task to the scheduler
(when (config/is-prod?)
(defn task-init []
(log/info "Submitting sync-database task to scheduler")
;; build our job
(reset! sync-databases-job (jobs/build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment