Added a command to process a row from a job.

This commit is contained in:
Rebecca Law
2019-09-26 14:19:09 +01:00
parent 3f35c634cd
commit 44b7b36acd
2 changed files with 27 additions and 2 deletions

View File

@@ -153,15 +153,17 @@ def process_row(row, template, job, service, sender_id=None):
if sender_id:
task_kwargs['sender_id'] = sender_id
notification_id = create_uuid()
send_fn.apply_async(
(
str(service.id),
create_uuid(),
notification_id,
encrypted,
),
task_kwargs,
queue=QueueNames.DATABASE if not service.research_mode else QueueNames.RESEARCH_MODE
)
return notification_id
def __sending_limits_for_job_exceeded(service, job, job_id):