Stop sending the encrypted message to the send_sms_to_provider task.

Everything the task needs is now stored in the db.
This commit is contained in:
Rebecca Law
2016-06-23 09:41:21 +01:00
parent 02e37dee3a
commit 8f19ad19f8
3 changed files with 10 additions and 15 deletions

View File

@@ -161,7 +161,7 @@ def send_sms(self, service_id, notification_id, encrypted_notification, created_
)
dao_create_notification(notification_db_object, TEMPLATE_TYPE_SMS)
send_sms_to_provider.apply_async((service_id, notification_id, encrypted_notification), queue='sms')
send_sms_to_provider.apply_async((service_id, notification_id), queue='sms')
current_app.logger.info(
"SMS {} created at {} sent at {}".format(notification_id, created_at, sent_at)