Skip to content

Commit

Permalink
Change time when cronjobs run
Browse files Browse the repository at this point in the history
These times are at system time, which is now MT (-0600/-0700).
Running the update earlier should align it a bit better with UTC.
  • Loading branch information
153957 committed Jun 27, 2024
1 parent 1702604 commit 4bad03b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions provisioning/roles/publicdb/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit 4bad03b

Please sign in to comment.