Bump utils to bring in changes to RecipientCSV rows

Bumped utils to version 31.2.5, which changes when the rows of a
RecipientCSV get created. Switched to using `.get_rows()` from
RecipientCSV (a generator) instead of the `.rows` property (which builds
a list of the rows in memory).
This commit is contained in:
Katie Smith
2019-04-25 10:54:37 +01:00
parent 3c4133e543
commit c02b7edb92
3 changed files with 8 additions and 8 deletions

View File

@@ -109,7 +109,7 @@ def process_job(job_id, sender_id=None):
s3.get_job_from_s3(str(service.id), str(job_id)),
template_type=template.template_type,
placeholders=template.placeholders
).rows:
).get_rows():
process_row(row, template, job, service, sender_id=sender_id)
job_complete(job, start=start)
@@ -609,7 +609,7 @@ def process_incomplete_job(job_id):
s3.get_job_from_s3(str(job.service_id), str(job.id)),
template_type=template.template_type,
placeholders=template.placeholders
).rows:
).get_rows():
if row.index > resume_from_row:
process_row(row, template, job, job.service)