Moved the sending sms for a job into celery tasks

This commit is contained in:
Martyn Inglis
2016-02-23 17:30:50 +00:00
parent 8de4ae5cf2
commit 635debb5a6
5 changed files with 315 additions and 100 deletions

View File

@@ -108,6 +108,11 @@ class SmsTemplateNotificationSchema(SmsNotificationSchema):
job = fields.String()
class JobSmsTemplateNotificationSchema(SmsNotificationSchema):
template = fields.Int(required=True)
job = fields.String(required=True)
class SmsAdminNotificationSchema(SmsNotificationSchema):
content = fields.Str(required=True)
@@ -138,6 +143,7 @@ old_request_verify_code_schema = OldRequestVerifyCodeSchema()
request_verify_code_schema = RequestVerifyCodeSchema()
sms_admin_notification_schema = SmsAdminNotificationSchema()
sms_template_notification_schema = SmsTemplateNotificationSchema()
job_sms_template_notification_schema = JobSmsTemplateNotificationSchema()
email_notification_schema = EmailNotificationSchema()
notification_status_schema = NotificationStatusSchema()
notifications_status_schema = NotificationStatusSchema(many=True)