mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
When processing a CSV file don't put the DB tasks into the live queue when service is in research mode.
This commit is contained in:
@@ -85,7 +85,7 @@ def process_job(job_id):
|
||||
create_uuid(),
|
||||
encrypted,
|
||||
datetime.utcnow().strftime(DATETIME_FORMAT)),
|
||||
queue='db-sms'
|
||||
queue='db-sms' if not service.research_mode else 'research-mode'
|
||||
)
|
||||
|
||||
if template.template_type == EMAIL_TYPE:
|
||||
@@ -94,7 +94,8 @@ def process_job(job_id):
|
||||
create_uuid(),
|
||||
encrypted,
|
||||
datetime.utcnow().strftime(DATETIME_FORMAT)),
|
||||
queue='db-email')
|
||||
queue='db-email' if not service.research_mode else 'research-mode'
|
||||
)
|
||||
|
||||
finished = datetime.utcnow()
|
||||
job.status = 'finished'
|
||||
|
||||
Reference in New Issue
Block a user