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

add some try/catch logic to prevent an exception from killing the whole job.

parent 80c5c19f
Branches
Tags
No related merge requests found
......@@ -21,7 +21,11 @@
[ctx]
(dorun
(for [database (db/sel :many Database)]
(future (driver/sync-database! database)))))
(try
;; NOTE: this happens synchronously for now to avoid excessive load if there are lots of databases
(driver/sync-database! database)
(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?)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment