ISFDB:Configure Nightly Processing

From ISFDB
Revision as of 17:25, 15 November 2018 by Ahasuerus (talk | contribs) (Page creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Configure crontab to run nightly_update.py in the "nightly" subdirectory under INSTALL_HTML. This module should be scheduled to run two times. The first run should be scheduled to run every night with the parameter "nightly", e.g.:

00    01    *    *    *    /var/www/html/nightly/nightly_update.py nightly > /dev/null 2>&1

When it runs, this task will regenerate database statistics and rerun the nightly cleanup reports.

The second run of this cron job should be scheduled to run once a week with the parameter "weekly", e.g.:

00    02    *    *    2    /var/www/html/nightly/nightly_update.py weekly > /dev/null 2>&1

When it runs, this task will recreate the "Suspected Duplicate Authors" cleanup report. This process takes a long time and puts a lot of stress on the server, so it should not be run nightly on a live system.