Adds the ability to launch a job that restores a database

This commit is contained in:
2023-03-29 16:46:36 -07:00
parent 1ec694a5d6
commit 420bd126bd
4 changed files with 236 additions and 152 deletions

View File

@@ -2,6 +2,7 @@
(:gen-class)
(:require
[auto-ap.handler :refer [app]]
[auto-ap.jobs.restore-from-backup :as job-restore-from-backup]
[auto-ap.jobs.bulk-journal-import :as job-bulk-journal-import]
[auto-ap.jobs.close-auto-invoices :as job-close-auto-invoices]
[auto-ap.jobs.current-balance-cache :as job-current-balance-cache]
@@ -136,6 +137,9 @@
(= job "bulk-journal-import")
(job-bulk-journal-import/-main)
(= job "restore-from-backup")
(job-restore-from-backup/-main)
:else
(do
(add-shutdown-hook! shutdown-mount)