geosolutions-it / ckan-docker-dcatapit

2 stars 0 forks source link

Harvester run command #6

Closed etj closed 2 years ago

etj commented 2 years ago

The harvesting setup requires a process to be run with cron every 5 minutes

Doc here.

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
lpasquali commented 2 years ago

implemented in PR #9