Data Freshness Emailer

The data freshness emailer alerts HDX administrators if there is a significant drop in datasets on HDX. It sends an automated mail reminder to data contributors if the update frequency time window for any of their datasets is missed by a certain amount. The email provides the link to the dataset that needs updating and if many datasets from the same maintainer are overdue, then they are sent as a single email. When a dataset becomes delinquent then HDX administrators are sent an email so that they can follow up. The flow is as shown below:

Here is the Docker image of the data freshness emailer: https://hub.docker.com/r/mcarans/hdx-data-freshness-emailer/. The code for the implementation is here: https://github.com/OCHA-DAP/hdx-data-freshness-emailer. It has tests with a high level of coverage.