Once we have the two consumers running and monitored, we just need to create a cron job that will run the run harvester command periodically. To do so, edit the cron table with the following command (it may ask you to choose an editor):
sudo crontab -e -u ckan
Note that we are running this command as the same user we configured the processes to be run with (ckan in our example).
Paste this line into your crontab, again replacing the paths to paster and the ini file with yours:
# m h dom mon dow command
*/15 * * * * /usr/lib/ckan/default/bin/ckan -c /etc/ckan/default/ckan.ini harvester run
The harvesting setup requires a process to be run with cron every 5 minutes
Doc here.