(cloud) Tweaks to logging and build performance

This commit is contained in:
2023-03-30 08:38:47 -07:00
parent f0603d922a
commit 9fc8c13d53
2 changed files with 8 additions and 2 deletions

View File

@@ -48,4 +48,8 @@ artifacts:
files:
- "**/*"
base-directory: resources/public
cache:
paths:
- '/root/.m2/**/*'
- '/root/.npm/**/*'
- 'build/**/*'

View File

@@ -64,6 +64,8 @@
(defn pull-file [backup which]
(mu/log ::pulling-file
:file (str "/datomic-backup/" backup "/" which))
(with-open [w (io/writer "/tmp/tmp-edn")]
(io/copy (:input-stream (s3/get-object {:bucket-name "data.prod.app.integreatconsult.com"
:key (str "/datomic-backup/" backup "/" which)}))
@@ -125,7 +127,7 @@
(doseq [entity (or item-list (filter (complement (conj @loaded "audit")) (order-of-insert entity-dependencies)))
:let [_ (reset! so-far 0)
_ (mu/log ::querying :entity entity)
entities (mu/trace ::pulling-file
entities (mu/trace ::file-pulled
[:file (str backup-id "/" entity ".ednl")]
(ednl/slurp (pull-file backup-id (str entity ".ednl"))))]]
(load-entity entity entities)))))