split up reporting tasks in to separate tasks per day

to try and speed up overall time by parallelising
This commit is contained in:
Leo Hemsted
2019-08-15 16:57:31 +01:00
parent ad389e7252
commit 36dd750637
3 changed files with 141 additions and 124 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,