Change function and task name to be more accurate

Will require us to change a cronitor set up
This commit is contained in:
David McDonald
2020-02-19 14:31:57 +00:00
parent 148a5ab456
commit e6767590d4
3 changed files with 12 additions and 12 deletions

View File

@@ -118,9 +118,9 @@ def get_letters_pdf(template, contact_block, filename, values):
return resp.content, billable_units
@notify_celery.task(name='collate-letter-pdfs-for-day')
@cronitor("collate-letter-pdfs-for-day")
def collate_letter_pdfs_for_day():
@notify_celery.task(name='collate-letter-pdfs-to-be-sent')
@cronitor("collate-letter-pdfs-to-be-sent")
def collate_letter_pdfs_to_be_sent():
"""
Finds all letters which are still waiting to be sent to DVLA for printing