Merge pull request #3009 from alphagov/limit-collate-task-to-50k-letters

limit collate task to 50,000 messages
This commit is contained in:
Leo Hemsted
2020-10-23 15:41:45 +01:00
committed by GitHub

View File

@@ -730,7 +730,7 @@ def dao_get_letters_to_be_printed(print_run_deadline, postage):
).order_by(
Notification.service_id,
Notification.created_at
)
).limit(50000)
return notifications