diff --git a/app/celery/scheduled_tasks.py b/app/celery/scheduled_tasks.py index 77d4b12af..fcc5edf29 100644 --- a/app/celery/scheduled_tasks.py +++ b/app/celery/scheduled_tasks.py @@ -223,7 +223,9 @@ def check_templated_letter_state(): letter_ids = [str(letter.id) for letter in letters] msg = "{} letters were created before 17.30 yesterday and still have 'created' status. " \ - "Notifications: {}".format(len(letters), letter_ids) + "Follow runbook to resolve: " \ + "https://github.com/alphagov/notifications-manuals/wiki/Support-Runbook#deal-with-Letters-still-in-created. " \ + "Notifications: {}".format(len(letters), letter_ids) current_app.logger.warning(msg) diff --git a/tests/app/celery/test_scheduled_tasks.py b/tests/app/celery/test_scheduled_tasks.py index 2254fd6f0..ccc5b250a 100644 --- a/tests/app/celery/test_scheduled_tasks.py +++ b/tests/app/celery/test_scheduled_tasks.py @@ -370,7 +370,9 @@ def test_check_templated_letter_state_during_bst(mocker, sample_letter_template) check_templated_letter_state() message = "2 letters were created before 17.30 yesterday and still have 'created' status. " \ - "Notifications: ['{}', '{}']".format(noti_1.id, noti_2.id) + "Follow runbook to resolve: " \ + "https://github.com/alphagov/notifications-manuals/wiki/Support-Runbook#deal-with-Letters-still-in-created. " \ + "Notifications: ['{}', '{}']".format(noti_1.id, noti_2.id) mock_logger.assert_called_once_with(message) mock_create_ticket.assert_called_with( @@ -395,7 +397,9 @@ def test_check_templated_letter_state_during_utc(mocker, sample_letter_template) check_templated_letter_state() message = "2 letters were created before 17.30 yesterday and still have 'created' status. " \ - "Notifications: ['{}', '{}']".format(noti_1.id, noti_2.id) + "Follow runbook to resolve: " \ + "https://github.com/alphagov/notifications-manuals/wiki/Support-Runbook#deal-with-Letters-still-in-created. " \ + "Notifications: ['{}', '{}']".format(noti_1.id, noti_2.id) mock_logger.assert_called_once_with(message) mock_create_ticket.assert_called_with(