You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2009/05/19 12:10:40 UTC
svn commit: r776259 - /spamassassin/trunk/build/automc/freqsd
Author: jm
Date: Tue May 19 10:10:40 2009
New Revision: 776259
URL: http://svn.apache.org/viewvc?rev=776259&view=rev
Log:
allow flag-based inhibition of super-slow report processes
Modified:
spamassassin/trunk/build/automc/freqsd
Modified: spamassassin/trunk/build/automc/freqsd
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/automc/freqsd?rev=776259&r1=776258&r2=776259&view=diff
==============================================================================
--- spamassassin/trunk/build/automc/freqsd (original)
+++ spamassassin/trunk/build/automc/freqsd Tue May 19 10:10:40 2009
@@ -20,6 +20,7 @@
"kill" => \$opt_kill,
);
+my $INHIBIT_SLOW_REPORTS_FLAG_FILE = "/export/home/automc/freqsd/flag.inhibit_slow_reports";
my $dq_fast = IPC::DirQueue->new({ dir => "/export/home/automc/freqsd/dq_fast" });
my $dq_slow = IPC::DirQueue->new({ dir => "/export/home/automc/freqsd/dq_slow" });
$pidfile ||= "/export/home/automc/freqsd/pid";
@@ -160,9 +161,13 @@
}
else {
# create slow reports
- logit "starting rsync slow reports";
- run_import_logs($child_reports, "--tag=n");
- make_reports($child_reports, "--tag=n");
+ if (-f $INHIBIT_SLOW_REPORTS_FLAG_FILE) {
+ logit "inhibited rsync slow reports, $INHIBIT_SLOW_REPORTS_FLAG_FILE exists";
+ } else {
+ logit "starting rsync slow reports";
+ run_import_logs($child_reports, "--tag=n");
+ make_reports($child_reports, "--tag=n");
+ }
# recreate the corpus link-farm
logit "running 'freqsd-infrequent' tasks";