[open-ils-commits] r18257 - branches/rel_2_0/Open-ILS/src/support-scripts (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Oct 11 10:02:22 EDT 2010


Author: erickson
Date: 2010-10-11 10:02:20 -0400 (Mon, 11 Oct 2010)
New Revision: 18257

Modified:
   branches/rel_2_0/Open-ILS/src/support-scripts/action_trigger_runner.pl
Log:
wait to run-pending if a specific granularity used

Modified: branches/rel_2_0/Open-ILS/src/support-scripts/action_trigger_runner.pl
===================================================================
--- branches/rel_2_0/Open-ILS/src/support-scripts/action_trigger_runner.pl	2010-10-11 14:01:45 UTC (rev 18256)
+++ branches/rel_2_0/Open-ILS/src/support-scripts/action_trigger_runner.pl	2010-10-11 14:02:20 UTC (rev 18257)
@@ -211,7 +211,7 @@
 
 # check the lockfile
 if (-e $opt_lockfile) {
-    die "I'm already running with lockfile $opt_lockfile\n" if (!$opt_process_hooks);
+    die "I'm already running with lockfile $opt_lockfile\n" unless ($opt_process_hooks or $opt_granularity);
     # sleeping loop if we're in --process-hooks mode
     while ($max_sleep >= 0 && sleep(1)) {
         last unless ( -e $opt_lockfile ); 



More information about the open-ils-commits mailing list