other fixes

This commit is contained in:
2021-12-19 13:05:23 -08:00
parent be31c7164b
commit 27ae8a15b7
7 changed files with 269 additions and 165 deletions

View File

@@ -6,7 +6,8 @@
[yang.scheduler :as scheduler]
[clojure.tools.logging :as log]
[auto-ap.intuit.import :as i]
[unilog.context :as lc]))
[unilog.context :as lc]
[auto-ap.yodlee.import :as y]))
(def queue-url (:requests-queue-url env))
@@ -18,9 +19,22 @@
:count 1}))]
(when message-id
(log/infof "processing message %s with body %s" message-id body )
(if (= ":intuit" body)
(cond
(= ":intuit" body)
(try
(i/upsert-transactions)
(catch Exception e
(log/error e)))
(= ":yodlee" body)
(try
(y/do-import)
(catch Exception e
(log/error e)))
(= ":yodlee2" body)
(try
(y/do-import2)
(catch Exception e
(log/error e))))
(sqs/delete-message {:queue-url queue-url