diff options
-rw-r--r-- | tw/services/personal-data-exporter.scm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tw/services/personal-data-exporter.scm b/tw/services/personal-data-exporter.scm index 80e85622..e3f7d4a3 100644 --- a/tw/services/personal-data-exporter.scm +++ b/tw/services/personal-data-exporter.scm @@ -168,12 +168,13 @@ create table if not exists \"conso_max_power\" (\"time\" timestamp primary key, #:user #$user) ;; Process the previous day's data during the night. - #~(job "0 4 * * *" #$(conso-fetch-command config) #:user #$user) + ;; Don't do this too early, else we get a 404 status from the server. + #~(job "0 7 * * *" #$(conso-fetch-command config) #:user #$user) ;; Back up electricity consumption database. The other data can ;; be easily recreated from the source data, but this data ;; becomes inaccessible after 2 years via the API. - #~(job "0 5 * * *" #$(conso-backup-command config) #:user #$user)))) + #~(job "15 7 * * *" #$(conso-backup-command config) #:user #$user)))) (define (personal-data-shepherd-services config) (match-record config <personal-data-exporter-configuration> (user group ledger-file ledger-locale) |