Some small changes to letter tasks and adding statsd

- Add statsd to collate-letter-pdfs-to-be-sent
- Add statsd to dao_get_letters_to_be_printed
- rename scheduled task for clarity
This commit is contained in:
Rebecca Law
2020-03-10 17:56:29 +00:00
parent 7636c4225d
commit e1b6bba9c4
4 changed files with 14 additions and 5 deletions

View File

@@ -731,6 +731,7 @@ def notifications_not_yet_sent(should_be_sending_after_seconds, notification_typ
return notifications
@statsd(namespace="dao")
def dao_get_letters_to_be_printed(print_run_deadline):
"""
Return all letters created before the print run deadline that have not yet been sent