Fixed build

- passing a single param to a celery task must be done as a list not a tuple.
This commit is contained in:
Martyn Inglis
2016-09-30 13:34:44 +01:00
parent f7242e007e
commit ad5222442a
4 changed files with 26 additions and 26 deletions

View File

@@ -131,7 +131,7 @@ def send_sms(self,
)
)
provider_tasks.deliver_sms.apply_async(
(notification_id),
[notification_id],
queue='send-sms' if not service.research_mode else 'research-mode'
)
@@ -173,7 +173,7 @@ def send_email(self, service_id,
)
provider_tasks.deliver_email.apply_async(
(notification_id),
[notification_id],
queue='send-email' if not service.research_mode else 'research-mode'
)

View File

@@ -335,12 +335,12 @@ def persist_notification(
research_mode = service.research_mode or key_type == KEY_TYPE_TEST
if notification_type == SMS_TYPE:
provider_tasks.deliver_sms.apply_async(
(str(notification_id)),
[str(notification_id)],
queue='send-sms' if not research_mode else 'research-mode'
)
if notification_type == EMAIL_TYPE:
provider_tasks.deliver_email.apply_async(
(str(notification_id)),
[str(notification_id)],
queue='send-email' if not research_mode else 'research-mode'
)
except Exception as e: