Removed statsd from the api and use the statsd in the utils library.

The statsd code was added to the utils library a while ago, uses the
statsd from the util library and therefore consolidates the code into
once place.
This commit is contained in:
Richard Chapman
2018-02-06 09:35:33 +00:00
parent 8696f8995d
commit d855b4e4ec
17 changed files with 18 additions and 79 deletions

View File

@@ -6,6 +6,7 @@ from datetime import (
from celery.signals import worker_process_shutdown
from flask import current_app
from notifications_utils.statsd_decorators import statsd
from sqlalchemy import and_
from sqlalchemy.exc import SQLAlchemyError
from notifications_utils.s3 import s3upload
@@ -54,7 +55,6 @@ from app.models import (
JOB_STATUS_READY_TO_SEND
)
from app.notifications.process_notifications import send_notification_to_queue
from app.statsd_decorators import statsd
from app.celery.tasks import (
create_dvla_file_contents_for_notifications,
process_job