Skip to content

Commit

Permalink
Set up cron tasks
Browse files Browse the repository at this point in the history
The daily tasks use yesterdays date to ensure we get a full days data
  • Loading branch information
ghickman committed Nov 22, 2023
1 parent 5c7da6b commit 9d1ff63
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}

0 comments on commit 9d1ff63

Please sign in to comment.