Some pseudo code and notes of how to implement a check for the letter acknowledgement file.

This commit is contained in:
Rebecca Law
2018-01-11 16:37:39 +00:00
parent 79a7355da7
commit 9c4e43bfac
3 changed files with 25 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ def process_letter_response():
message = json.loads(req_json['Message'])
filename = message['Records'][0]['s3']['object']['key']
current_app.logger.info('Received file from DVLA: {}'.format(filename))
# IF file name contains .rs.txt THEN continue ELSE log message with file name. and return
current_app.logger.info('DVLA callback: Calling task to update letter notifications')
update_letter_notifications_statuses.apply_async([filename], queue=QueueNames.NOTIFY)