Skip to content

Commit

Permalink
rm worker success email
Browse files Browse the repository at this point in the history
  • Loading branch information
devonzuegel committed Oct 12, 2022
1 parent 97f77a0 commit 49f1bee
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/smallworld/web.clj
Original file line number Diff line number Diff line change
Expand Up @@ -419,14 +419,16 @@
"users that failed:\n" (with-out-str (pp/pprint @failures)) "\n\n"
"users refetched:\n" (with-out-str (pp/pprint @refetched)))]
(println to-print)
(when (= (:prod util/ENVIRONMENTS) (util/get-env-var "ENVIRONMENT"))
(email/send-email {:to "[email protected]"
:subject (str "[" (util/get-env-var "ENVIRONMENT") "] worker.clj refetched " (count @refetched) " users")
:type "text/plain"
:body to-print})
(reset! failures [])
(reset! skipped [])
(reset! refetched []))))

;; Removing this because it's too noisy
#_(when (= (:prod util/ENVIRONMENTS) (util/get-env-var "ENVIRONMENT"))
(email/send-email {:to "[email protected]"
:subject (str "[" (util/get-env-var "ENVIRONMENT") "] worker.clj refetched " (count @refetched) " users")
:type "text/plain"
:body to-print})
(reset! failures [])
(reset! skipped [])
(reset! refetched []))))

(println "\n===============================================\n"))

Expand Down

0 comments on commit 49f1bee

Please sign in to comment.