Error handling fix
This commit is contained in:
parent
aa4b79988a
commit
7ed71fab9c
|
@ -312,12 +312,13 @@
|
||||||
|
|
||||||
(defn wrap-in-try-catch [func]
|
(defn wrap-in-try-catch [func]
|
||||||
(try
|
(try
|
||||||
|
(func)
|
||||||
(catch Throwable t
|
(catch Throwable t
|
||||||
(log/error t))))
|
(log/error t))))
|
||||||
|
|
||||||
(defn run-tasks [tasks]
|
(defn run-tasks [tasks]
|
||||||
(doall
|
(doall
|
||||||
(map (fn [func] (wrap-in-try-catch (func)))
|
(map (fn [func] (wrap-in-try-catch func))
|
||||||
tasks)))
|
tasks)))
|
||||||
|
|
||||||
(defn run-1-min-interval-tasks [time]
|
(defn run-1-min-interval-tasks [time]
|
||||||
|
|
Loading…
Reference in New Issue