CDR Tickets

Issue Number 3712
Summary Recover from Licensee Notification Failures
Created 2014-02-03 18:08:52
Issue Type Improvement
Submitted By Englisch, Volker (NIH/NCI) [C]
Assigned To Englisch, Volker (NIH/NCI) [C]
Status Closed
Resolved 2014-02-26 18:36:12
Resolution Fixed
Path /home/bkline/backups/jira/ocecdr/issue.118029
Description

The SendEmail.py program fails when the NIH refused to deliver the email message.
In the last 6 weeks or so the NIH mail server refused a connection causing the program to fail. I'd like to investigate how to easily recover from or ignore such failures on the FTP server.

Comment entered 2014-02-26 18:35:54 by Englisch, Volker (NIH/NCI) [C]

I've modified the licensee notification email in two ways:

  1. Instead of reading the licensee address file at the beginning and then writing the updated file line by line as the licensees are being notified I am now reading and writing the file after each notification. This has the advantage that the address file will always be available even if the job gets interrupted and the mailing fails.

  2. I've added a new column to the file that's called 'Notified'. This column is set to 'Y' once a licensee has been notified. If the mailer process fails half-way through I've implemented a new option named '--rerun' that allows the operator to pick up from where we left off.

I will have to do a little more testing before this is complete.

Comment entered 2014-03-03 21:17:08 by Englisch, Volker (NIH/NCI) [C]

I tested this program on DEV and added the ability to send a summary mail including the messages from both, a failed notification run and the following completion run, to the operator.

  • R12413: SendEmail.py

Comment entered 2014-03-20 15:14:05 by Englisch, Volker (NIH/NCI) [C]

Due to last Monday's notification failure I've passed this program on to CBIIT ahead of the release and we identified a minor error. That was fixed with

  • R12472: SendEmail.py

The program ran successfully on PROD.

Elapsed: 0:00:00.001273