ontoportal-lirmm / ncbo_cron

Jobs that run on a regular basis in the NCBO infrastructure
Other
0 stars 6 forks source link

NCBO CRON

A project with CRON job for the NCBO BioPortal

Run the ncbo_cron daemon

To run it use the bin/ncbo_cron command

Running this command without option will run the job according to the settings defined in the NcboCron config file. Or by default in ncbo_cron/lib/ncbo_cron/config.rb

But the user can add arguments to change some settings.

Here an example to run the flush old graph job every 3 hours and to disable the automatic pull of new submissions:

bin/ncbo_cron --flush-old-graphs "0 */3 * * *" --disable-pull

It will run by default as a daemon

But it will not run as a daemon if you use one of the following options:

Stop the ncbo_cron daemon

The PID of the ncbo_cron process is in /var/run/ncbo_cron/ncbo_cron.pid

To stop the ncbo_cron daemon:

bin/ncbo_cron -k

Run manually

Process an ontology

bin/ncbo_ontology_process -o STY

Mappings bulk load

To load a lot of mappings without using the REST API (which can take a long time)

bin/ncbo_mappings_bulk_load -b /path/to/mapping/file.json -l /path/to/log/file.log