- Timestamp:
- Jun 19, 2012, 5:24:19 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/nightly_science.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/ippScripts/scripts/nightly_science.pl
r33415 r34041 32 32 exit($PS_EXIT_CONFIG_ERROR); 33 33 } 34 35 ## for DB connection, want to use siteConfig DB settings 36 my $ipprc = PS::IPP::Config->new(); # IPP Configuration 37 my $siteConfig = $ipprc->{_siteConfig}; 34 38 35 39 my $db; … … 1539 1543 $cmd .= " -simple -set_label $label -exp_id $input_exp_id -template_exp_id $template_exp_id "; 1540 1544 # $cmd .= " -pretend "; 1545 if (defined($reduction)) { 1546 $cmd .= " -set_reduction $reduction "; 1547 } 1548 1541 1549 if (defined($pretend)) { 1542 1550 $cmd .= ' -pretend '; … … 1670 1678 $cmd .= "-set_workdir $workdir -set_dist_group $dist_group -set_data_group $new_data_group "; 1671 1679 $cmd .= " -simple -set_label $label -exp_id $input_exp_id -template_exp_id $template_exp_id "; 1680 if (defined($reduction)) { 1681 $cmd .= " -set_reduction $reduction "; 1682 } 1683 1672 1684 # $cmd .= " -pretend "; 1673 1685 if (defined($pretend)) { … … 1724 1736 $check_cmd .= " -pretend -simple -rerun -set_label $label -filter $filter "; 1725 1737 $check_cmd .= " -dateobs_begin ${lunation_start}T00:00:00 -dateobs_end ${lunation_end}T23:59:59 -distance 1.5 "; 1738 if (defined($reduction)) { 1739 $check_cmd .= " -set_reduction $reduction "; 1740 } 1726 1741 1727 1742 my ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = … … 1745 1760 $cmd .= " -simple -rerun -set_label $label -filter $filter "; 1746 1761 $cmd .= " -dateobs_begin ${lunation_start}T00:00:00 -dateobs_end ${lunation_end}T23:59:59 -distance 1.5 "; 1762 if (defined($reduction)) { 1763 $cmd .= " -set_reduction $reduction "; 1764 } 1747 1765 1748 1766 if (defined($pretend)) { … … 2038 2056 2039 2057 sub init_gpc_db { 2058 ## change to use the siteConfig setting, while readonly probably do not want to use a readonly replicated DB incase it gets behind 2059 my $dbserver = metadataLookupStr($siteConfig, 'DBSERVER'); 2060 my $dbuser = metadataLookupStr($ipprc->{_siteConfig}, "RO_DBUSER"); 2061 my $dbpass = metadataLookupStr($ipprc->{_siteConfig}, "RO_DBPASSWORD"); 2062 die "database configuration not set up" unless defined($dbserver); 2063 die "database configuration not set up" unless defined($dbuser); 2064 die "database configuration not set up" unless defined($dbpass); 2065 #my $dbserver = 'ippdb01'; 2066 #my $dbuser = 'ippuser'; 2067 #my $dbpass = 'ippuser'; 2040 2068 use constant DB_SOCKET => '/var/run/mysqld/mysqld.sock'; 2041 my $dbserver = 'ippdb01';2042 my $dbuser = 'ippuser';2043 my $dbpass = 'ippuser';2044 2069 $db = DBI->connect("DBI:mysql:database=${dbname};host=${dbserver};" . 2045 2070 "mysql_socket=" . DB_SOCKET(),
Note:
See TracChangeset
for help on using the changeset viewer.
