
ckanext-harvestnotification
This extension provides a plugin that adds configuration to specify the recipients of harvester email notifications.
Configuration for harvester email notifications from ckanext-harvest must be set to use this feature.
Users must also have email notifications enabled in their user settings.
Requirements
This extension requires ckanext-harvest (https://github.com/ckan/ckanext-harvest) to be installed along with any of the following configuration options.
If you want to send an email when a Harvest Job fails, you can set the following configuration option in the ini file:
ckan.harvest.status_mail.errored = True
If you want to send an email when completed Harvest Jobs finish (whether or not it failed), you can set the following configuration option in the ini file:
ckan.harvest.status_mail.all = True
Compatibility with core CKAN versions:
| CKAN version |
Compatible? |
| 2.7 |
yes |
| 2.8 |
not tested |
| 2.9 |
not tested |
Installation
To install ckanext-harvestnotification:
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
Install ckanext-harvest (https://github.com/ckan/ckanext-harvest#installation)
Clone the source and install it on the virtualenv
git clone https://github.com/OpenGov/ckanext-harvestnotification.git
cd ckanext-harvestnotification
pip install -e .
pip install -r requirements.txt
Add harvest_notification to the ckan.plugins setting in your CKAN
config file (by default the config file is located at
/etc/ckan/default/ckan.ini).
Restart CKAN. For example if you’ve deployed CKAN with Apache on Ubuntu:
sudo service apache2 reload
Config sett