diff --git a/buildspec.yml b/buildspec.yml index f9e02cc0..be5927ee 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -48,4 +48,8 @@ artifacts: files: - "**/*" base-directory: resources/public - +cache: + paths: + - '/root/.m2/**/*' + - '/root/.npm/**/*' + - 'build/**/*' diff --git a/src/clj/auto_ap/jobs/restore_from_backup.clj b/src/clj/auto_ap/jobs/restore_from_backup.clj index ff555249..4100c98b 100644 --- a/src/clj/auto_ap/jobs/restore_from_backup.clj +++ b/src/clj/auto_ap/jobs/restore_from_backup.clj @@ -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)))))