Merge pull request #2526 from alphagov/cronitor

ensure cronitor decorator is inside the notify_task wrapper
This commit is contained in:
Leo Hemsted
2019-06-03 12:57:48 +01:00
committed by GitHub

View File

@@ -111,8 +111,8 @@ def get_letters_pdf(template, contact_block, filename, values):
return resp.content, billable_units
@cronitor("collate-letter-pdfs-for-day")
@notify_celery.task(name='collate-letter-pdfs-for-day')
@cronitor("collate-letter-pdfs-for-day")
def collate_letter_pdfs_for_day(date=None):
if not date:
# Using the truncated date is ok because UTC to BST does not make a difference to the date,