Error handling fix

This commit is contained in:
Teemu Patja 2018-01-08 12:53:04 +02:00
parent aa4b79988a
commit 7ed71fab9c
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
1 changed files with 2 additions and 1 deletions

View File

@ -312,12 +312,13 @@
(defn wrap-in-try-catch [func]
(try
(func)
(catch Throwable t
(log/error t))))
(defn run-tasks [tasks]
(doall
(map (fn [func] (wrap-in-try-catch (func)))
(map (fn [func] (wrap-in-try-catch func))
tasks)))
(defn run-1-min-interval-tasks [time]