Merge pull request #2593 from alphagov/split-up-nightly-tasks

split up reporting tasks in to separate tasks per day
This commit is contained in:
Leo Hemsted
2019-08-21 15:58:17 +01:00
committed by GitHub
4 changed files with 155 additions and 141 deletions

View File

@@ -80,7 +80,8 @@ def query_for_fact_status_data(table, start_date, end_date, notification_type, s
table.created_at >= start_date,
table.created_at < end_date,
table.notification_type == notification_type,
table.service_id == service_id
table.service_id == service_id,
table.key_type != KEY_TYPE_TEST
).group_by(
table.template_id,
table.service_id,