From 4bad03bbdb6ec97ba6bc1ef8f005cafe956e6c60 Mon Sep 17 00:00:00 2001 From: Arne de Laat Date: Thu, 27 Jun 2024 18:22:24 +0200 Subject: [PATCH] Change time when cronjobs run These times are at system time, which is now MT (-0600/-0700). Running the update earlier should align it a bit better with UTC. --- provisioning/roles/publicdb/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/provisioning/roles/publicdb/tasks/main.yml b/provisioning/roles/publicdb/tasks/main.yml index 27e842b5..839af0a3 100644 --- a/provisioning/roles/publicdb/tasks/main.yml +++ b/provisioning/roles/publicdb/tasks/main.yml @@ -191,8 +191,8 @@ - name: Enable cron job for updating histograms and ESD ansible.builtin.cron: name: "HiSPARC update" - minute: 0 - hour: 4 + minute: 30 + hour: 0 state: present job: "{{ publicdb_venv }}/bin/python {{ publicdb_code }}/manage.py updatehistograms" @@ -221,7 +221,7 @@ ansible.builtin.cron: name: "Publicdb dump" minute: 0 - hour: 1 + hour: 12 state: present job: "if [ -f '{{ publicdb_dumps }}/publicdb_dump.sql' ]; then mv {{ publicdb_dumps }}/publicdb_dump.sql {{ publicdb_dumps }}/publicdb_dump_yesterday.sql; fi; pg_dump --format=c --compress=1 --schema=public --dbname=publicdb --file={{ publicdb_dumps }}/publicdb_dump.sql"