From 9d1ff63c809545c63677866225b3336b95843972 Mon Sep 17 00:00:00 2001 From: George Hickman Date: Tue, 7 Nov 2023 13:58:08 +0000 Subject: [PATCH] Set up cron tasks The daily tasks use yesterdays date to ensure we get a full days data --- app.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 app.json diff --git a/app.json b/app.json new file mode 100644 index 00000000..9ff76056 --- /dev/null +++ b/app.json @@ -0,0 +1,24 @@ +{ + "cron": [ + { + "command": "python -m metrics github pr-throughput ebmdatalab $(date -d '1 day ago' '+%F')", + "schedule": "@daily" + }, + { + "command": "python -m metrics github pr-throughput opensafely-core $(date -d '1 day ago' '+%F')", + "schedule": "@daily" + }, + { + "command": "python -m metrics slack tech-support $(date -d '1 day ago' '+%F')", + "schedule": "@daily" + }, + { + "command": "python -m metrics github open-prs ebmdatalab $(date -d '+%F')", + "schedule": "@weekly" + }, + { + "command": "python -m metrics github open-prs opensafely-core $(date -d '+%F')", + "schedule": "@weekly" + } + ] +}