Skip to content

Commit ab65c94

Browse files
committed
add cron
1 parent 877be24 commit ab65c94

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

deploy/playbooks/04_cron.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
44
tasks:
55
- name: "Download pretalx data every hour"
66
ansible.builtin.cron:
7-
name: "Download pretalx data every hour"
7+
name: "Download pretalx data once a day at 05:05am"
88
minute: "5"
9-
hour: "8" # run once a day at 08:05 am
9+
hour: "5" # run once a day at 08:05 am
1010
job: "make prod/cron/pretalx"
11+
12+
ansible.builtin.cron:
13+
name: "Download pretix data once a day at 06:05am"
14+
minute: "5"
15+
hour: "6"
16+
job: "make prod/cron/pretix"

deploy/templates/app/Makefile.app.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,9 @@ prod/manage:
1818
prod/cron/pretalx:
1919
$(MAKE_APP) in-container/manage ARG="download_pretalx_data --event=europython-2025"
2020

21+
22+
prod/cron/pretix:
23+
$(MAKE_APP) in-container/manage ARG="download_pretix_data --event=ep2025"
24+
2125
logs:
2226
docker compose logs -f

0 commit comments

Comments
 (0)