From 87bc86efa736641e7e96f8f8d1fe9a0837649052 Mon Sep 17 00:00:00 2001 From: Pea Tyczynska Date: Thu, 5 Dec 2019 17:31:31 +0000 Subject: [PATCH] Reference dev runbook for instructions in the zendesk ticket --- app/celery/scheduled_tasks.py | 3 ++- tests/app/celery/test_scheduled_tasks.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/celery/scheduled_tasks.py b/app/celery/scheduled_tasks.py index 225772537..d8482924e 100644 --- a/app/celery/scheduled_tasks.py +++ b/app/celery/scheduled_tasks.py @@ -287,7 +287,8 @@ def check_for_services_with_high_failure_rates_or_sending_to_tv_numbers(): current_app.logger.exception(message) if current_app.config['NOTIFY_ENVIRONMENT'] in ['live', 'production', 'test']: - message += "\nThings to do: contact service? revoke their key?" + message += "\nYou can find instructions for this ticket in our manual:\n" + "https://github.com/alphagov/notifications-manuals/wiki/Support-Runbook#Deal-with-services-with-high-failure-rates-or-sending-sms-to-tv-numbers" # noqa zendesk_client.create_ticket( subject="[{}] High failure rates for sms spotted for services".format( current_app.config['NOTIFY_ENVIRONMENT'] diff --git a/tests/app/celery/test_scheduled_tasks.py b/tests/app/celery/test_scheduled_tasks.py index cd4848c4d..ed52a9f6a 100644 --- a/tests/app/celery/test_scheduled_tasks.py +++ b/tests/app/celery/test_scheduled_tasks.py @@ -544,7 +544,8 @@ def test_check_for_services_with_high_failure_rates_or_sending_to_tv_numbers( 'app.celery.scheduled_tasks.dao_find_services_sending_to_tv_numbers', return_value=sms_to_tv_numbers ) - zendesk_actions = "\nThings to do: contact service? revoke their key?" + zendesk_actions = "\nYou can find instructions for this ticket in our manual:\n" + "https://github.com/alphagov/notifications-manuals/wiki/Support-Runbook#Deal-with-services-with-high-failure-rates-or-sending-sms-to-tv-numbers" # noqa check_for_services_with_high_failure_rates_or_sending_to_tv_numbers()