From 7ed71fab9c07ef8d7282f0a7f8da65a53174113e Mon Sep 17 00:00:00 2001 From: Teemu Patja Date: Mon, 8 Jan 2018 12:53:04 +0200 Subject: [PATCH] Error handling fix --- src/clj/commiteth/scheduler.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/clj/commiteth/scheduler.clj b/src/clj/commiteth/scheduler.clj index fd84030..0c35df3 100644 --- a/src/clj/commiteth/scheduler.clj +++ b/src/clj/commiteth/scheduler.clj @@ -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]