Pulling out other imports

This commit is contained in:
2022-09-23 11:46:44 -07:00
parent 567c5538d3
commit e201a8b03e
7 changed files with 98 additions and 54 deletions

View File

@@ -84,11 +84,3 @@
{:intuit-bank-account/external-id (:name ba)
:intuit-bank-account/name (:name ba)})
bank-accounts))))
(mount/defstate import-worker
:start (scheduler/every (* 1000 60 60 24) (heartbeat import-intuit "import-intuit"))
:stop (scheduler/stop import-worker))
(mount/defstate account-worker
:start (scheduler/every (* 1000 60 30) upsert-accounts)
:stop (scheduler/stop account-worker))

View File

@@ -61,9 +61,3 @@
(def import-plaid (allow-once import-plaid-int))
(mount/defstate import-worker
:start (scheduler/every (* 1000 60 60 3) (heartbeat import-plaid "import-plaid"))
:stop (scheduler/stop import-worker))

View File

@@ -88,11 +88,3 @@
(def import-yodlee2 (allow-once import-yodlee2-int))
(mount/defstate import-worker
:start (scheduler/every (* 1000 60 60 4) (heartbeat import-yodlee2 "import-yodlee"))
:stop (scheduler/stop import-worker))
(mount/defstate account-worker
:start (scheduler/every (* 5 60 1000) (heartbeat client2/upsert-accounts "upsert-yodlee2-accounts"))
:stop (scheduler/stop account-worker))