diff --git a/src/clj/auto_ap/jobs/current_balance_cache.clj b/src/clj/auto_ap/jobs/current_balance_cache.clj index 99e116aa..66aac9c6 100644 --- a/src/clj/auto_ap/jobs/current_balance_cache.clj +++ b/src/clj/auto_ap/jobs/current_balance_cache.clj @@ -15,6 +15,7 @@ ((heartbeat clients/refresh-current-balance "current-balance-cache")) (mount/stop ) (log/info "Stopping current-balance-cache") + (Thread/sleep 15000) (System/exit 0)) (finally (System/exit 0)))) diff --git a/src/clj/auto_ap/jobs/ledger_reconcile.clj b/src/clj/auto_ap/jobs/ledger_reconcile.clj index 519e44c8..bb46fd69 100644 --- a/src/clj/auto_ap/jobs/ledger_reconcile.clj +++ b/src/clj/auto_ap/jobs/ledger_reconcile.clj @@ -15,7 +15,8 @@ ((heartbeat ledger/reconcile-ledger "reconcile-ledger")) ((heartbeat ledger/touch-broken-ledger "touch-broken-ledger")) (mount/stop) - (log/info "Stopping Ledger reconciliation")) + (log/info "Stopping Ledger reconciliation") + (Thread/sleep 15000)) (finally (System/exit 0)))) diff --git a/src/clj/auto_ap/jobs/square.clj b/src/clj/auto_ap/jobs/square.clj index 7d20786f..c89b23cc 100644 --- a/src/clj/auto_ap/jobs/square.clj +++ b/src/clj/auto_ap/jobs/square.clj @@ -14,5 +14,6 @@ ((heartbeat square/upsert-all "square-loading")) (mount/stop ) (log/info "Stopping Square loading") + (Thread/sleep 15000) (System/exit 0)))