diff --git a/backend/src/app/worker/runner.clj b/backend/src/app/worker/runner.clj index d2b0204121..426d69a123 100644 --- a/backend/src/app/worker/runner.clj +++ b/backend/src/app/worker/runner.clj @@ -224,11 +224,11 @@ "failed" (handle-task-failure result) "completed" (handle-task-completion result) (throw (IllegalArgumentException. - (str "invalid status received: " status)))))) + (str "invalid status received: '" status "'")))))) (run-task-loop [[task-id scheduled-at]] (loop [result (run-task! cfg task-id scheduled-at)] - (when-let [cause (process-result result)] + (when-let [cause (some-> result process-result)] (if (or (db/connection-error? cause) (db/serialization-error? cause)) (do