[freeside-commits] freeside/FS/FS/Cron bill.pm,1.22,1.23
Ivan,,,
ivan at wavetail.420.am
Sat Apr 25 15:42:42 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS/Cron
In directory wavetail.420.am:/tmp/cvs-serv2199/FS/Cron
Modified Files:
bill.pm
Log Message:
add dry run to multi-process mode for testing, RT#4412
Index: bill.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Cron/bill.pm,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- bill.pm 23 Apr 2009 04:57:05 -0000 1.22
+++ bill.pm 25 Apr 2009 22:42:40 -0000 1.23
@@ -138,13 +138,17 @@
if ( $opt{'m'} ) {
- #add job to queue that calls bill_and_collect with options
- my $queue = new FS::queue {
- 'job' => 'FS::cust_main::queued_bill',
- 'secure' => 'Y',
- 'priority' => 99, #don't get in the way of provisioning jobs
- };
- my $error = $queue->insert( 'custnum'=>$custnum, %args );
+ if ( $opt{'r'} ) {
+ warn "DRY RUN: would add custnum $custnum for queued_bill\n";
+ } else {
+ #add job to queue that calls bill_and_collect with options
+ my $queue = new FS::queue {
+ 'job' => 'FS::cust_main::queued_bill',
+ 'secure' => 'Y',
+ 'priority' => 99, #don't get in the way of provisioning jobs
+ };
+ my $error = $queue->insert( 'custnum'=>$custnum, %args );
+ }
} else {
More information about the freeside-commits
mailing list