mirror of
https://github.com/GSA/notifications-api.git
synced 2026-04-05 01:49:29 -04:00
Made celery task arg a tuple
This commit is contained in:
@@ -311,7 +311,7 @@ def run_letter_jobs():
|
||||
job_ids = [job.id for job in dao_get_letter_jobs_by_status(JOB_STATUS_READY_TO_SEND)]
|
||||
notify_celery.send_task(
|
||||
name=TaskNames.DVLA_FILES,
|
||||
args=(job_ids),
|
||||
args=(job_ids,),
|
||||
queue=QueueNames.PROCESS_FTP
|
||||
)
|
||||
current_app.logger.info("Queued {} ready letter job ids onto {}".format(len(job_ids), QueueNames.PROCESS_FTP))
|
||||
|
||||
@@ -696,5 +696,5 @@ def test_run_letter_jobs(client, mocker, sample_letter_template):
|
||||
run_letter_jobs()
|
||||
|
||||
mock_celery.assert_called_once_with(name=TaskNames.DVLA_FILES,
|
||||
args=([job.id for job in jobs]),
|
||||
args=([job.id for job in jobs],),
|
||||
queue=QueueNames.PROCESS_FTP)
|
||||
|
||||
Reference in New Issue
Block a user