LP#1596595 hold_targeter_v2.pl, parallel, new options
authorBill Erickson <berickxx@gmail.com>
Thu, 30 Jun 2016 21:40:55 +0000 (17:40 -0400)
committerBill Erickson <berickxx@gmail.com>
Fri, 26 Aug 2016 21:32:17 +0000 (17:32 -0400)
commit8cefd1977a5080b6458671872dcda62a38f72aec
tree0fd23de557687672e7648f7cce93fb37585031a6
parent9040301c701e731ee7027b57098cc27a615f51dd
LP#1596595 hold_targeter_v2.pl, parallel, new options

Move new targeter to Open-ILS/src/support-scripts/hold_targeter_v2.pl
and recover existing hold targeter for backwards-compat.

Add options to hold targeter v2:

--verbose
    Print process counts

--parallel <parallel-process-count>
    Number of parallel hold processors to run.  This overrides any
    value found in opensrf.xml

--target-all
    Target all active holds, regardless of when they were last targeted.

--skip-viable
    Avoid modifying holds that currently target viable copies.
    In other words, only (re)target holds in a non-viable state.

--retarget-interval
    Override the 'circ.holds.retarget_interval' global_flag value.

--parallel-init-sleep
    Time to wait between starting each parallel instance.  Useful for
    avoiding dog-piling the DB.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/Makefile.am
Open-ILS/src/support-scripts/hold_targeter.pl [changed mode: 0755->0644]
Open-ILS/src/support-scripts/hold_targeter_v2.pl [new file with mode: 0755]