From cf3fd6fd4027fa370062f488cf56134fcb10d29e Mon Sep 17 00:00:00 2001 From: Artur Czepiel Date: Fri, 25 Apr 2025 12:03:47 +0200 Subject: [PATCH] Update cron settings Clear the crontab on every deploy, to make sure only the entires mentioned in the playbook are installed. Adjust timing a bit. --- deploy/playbooks/04_cron.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/deploy/playbooks/04_cron.yml b/deploy/playbooks/04_cron.yml index e9b2cd6..ffe6078 100644 --- a/deploy/playbooks/04_cron.yml +++ b/deploy/playbooks/04_cron.yml @@ -2,18 +2,21 @@ hosts: intbot_app tasks: + - name: "Wipe user's crontab" + command: crontab -r + - name: "Download pretalx data once a day" ansible.builtin.cron: - name: "Download pretalx data once a day at 05:05am" + name: "Download pretalx data once a day at 06:05am" minute: "5" - hour: "5" + hour: "6" job: "make prod/cron/pretalx" - name: "Download pretix data once a day" ansible.builtin.cron: - name: "Download pretix data once a day at 06:05am" + name: "Download pretix data once a day at 07:05am" minute: "5" - hour: "6" + hour: "7" job: "make prod/cron/pretix" - name: "Schedule standup message on Monday morning"