CDR Tickets

Issue Number 3787
Summary [CTRP] Add Email Notification if Download Fails
Created 2014-07-29 18:27:30
Issue Type New Feature
Submitted By Englisch, Volker (NIH/NCI) [C]
Assigned To Englisch, Volker (NIH/NCI) [C]
Status Closed
Resolved 2014-10-06 17:35:28
Resolution Fixed
Path /home/bkline/backups/jira/ocecdr/issue.135668
Description

The CTRP Protocol download recognizes and logs when it wasn't able to retrieve a current data file but the information is not submitted as an email notification. The nightly job only reports when the process started.

We want to add a notification email if the download failed so that we can contact CTRP folks.

Comment entered 2014-07-30 14:07:26 by Kline, Bob (NIH/NCI) [C]

While you're at it, please have the script check for an HTTP success (200) code in the response from CTRP.

Comment entered 2014-07-30 19:03:00 by Englisch, Volker (NIH/NCI) [C]

The program has been modified to

  • send an email if we can't download a data file and

  • send an email if the HTTP status code is not OK (200)

Comment entered 2014-09-22 12:02:34 by Englisch, Volker (NIH/NCI) [C]

I noticed I hadn't versioned the changes yet:

  • R12911: DownloadCtrpTrials.py

Elapsed: 0:00:00.001639