(cloud) Improvements in logging when restoring backup
This commit is contained in:
@@ -44,9 +44,10 @@
|
|||||||
(def loaded (atom #{}))
|
(def loaded (atom #{}))
|
||||||
|
|
||||||
(defn upsert-batch
|
(defn upsert-batch
|
||||||
[batch]
|
[batch context]
|
||||||
(de/future-with request-pool
|
(de/future-with request-pool
|
||||||
(transact-with-backoff batch)
|
(mu/with-context context
|
||||||
|
(transact-with-backoff batch))
|
||||||
batch))
|
batch))
|
||||||
|
|
||||||
(defn pull-file [backup which]
|
(defn pull-file [backup which]
|
||||||
@@ -83,8 +84,10 @@
|
|||||||
(when @die?
|
(when @die?
|
||||||
(reset! die? false)
|
(reset! die? false)
|
||||||
(throw (Exception. "dead")))
|
(throw (Exception. "dead")))
|
||||||
(upsert-batch entities)))
|
(upsert-batch entities {:entity entity
|
||||||
(s/buffer 50)
|
:service "restore-from-backup"
|
||||||
|
:background-job "restore-from-backup"})))
|
||||||
|
(s/buffer 20)
|
||||||
(s/realize-each)))
|
(s/realize-each)))
|
||||||
(swap! loaded conj entity))))
|
(swap! loaded conj entity))))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user