Changeset 28876
- Timestamp:
- Aug 9, 2010, 5:49:43 PM (16 years ago)
- Location:
- tags/ipp-20100701
- Files:
-
- 2 edited
-
ippScripts/scripts/automate_stacks.pl (modified) (7 diffs)
-
ippconfig/recipes/nightly_science.config (modified) (12 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20100701/ippScripts/scripts/automate_stacks.pl
r28651 r28876 41 41 # Grab options 42 42 my ( $date, $camera, $dbname, $logfile, $verbose, $manual); 43 my ( $help, $isburning, $force_stack_count, $test_mode, $this_target_only, $this_filter_only, $this_mode_only, $check_mode );43 my ( $help, $isburning, $force_stack_count, $test_mode, $this_target_only, $this_filter_only, $this_mode_only, $check_mode, $burntool_stats); 44 44 my ( $check_registration, $define_burntool, $queue_burntool, $check_chips, $queue_chips); 45 45 my ( $check_stacks, $queue_stacks, $check_diffs, $queue_diffs, $clean_old); … … 58 58 'check' => \$check_mode, 59 59 'test_mode' => \$test_mode, 60 'burntool_stats' => \$burntool_stats, 60 61 'this_target_only=s' => \$this_target_only, 61 62 'this_filter_only=s' => \$this_filter_only, … … 89 90 --this_filter_only Process only a single filter. 90 91 --this_mode_only Process only a single clean mode. 92 --burntool_stats Display Nexp Nimfile Nburntooled Nqueued for check_chips. 91 93 Modes: 92 94 --check_registration Confirm the data downloaded correctly. … … 656 658 my $pretend = shift; 657 659 my $exposures = 0; 660 658 661 foreach my $target (@target_list) { 659 662 my ($Nexposures,$Nimfiles,$Nburntooled,$Nalready) = pre_chip_queue($date,$target); 663 if (defined($burntool_stats)) { 664 print "$Nexposures $Nimfiles $Nburntooled $Nalready\n"; 665 } 666 660 667 if ($Nexposures == 0) { 661 668 print STDERR "execute_chips: Target $target on $date had no exposures.\n"; … … 1039 1046 my $args = $command; 1040 1047 if ((exists($clean_alternate{$mode})) && ($clean_alternate{$mode} eq 'A')) { 1041 $args .= " -dbname $dbname -updaterun -set_state goto_cleaned -full -set_label goto_cleaned - time_stamp_end $cleaning_date ";1048 $args .= " -dbname $dbname -updaterun -set_state goto_cleaned -full -set_label goto_cleaned -label $label -time_stamp_end $cleaning_date "; 1042 1049 } 1043 1050 elsif ((exists($clean_alternate{$mode})) && ($clean_alternate{$mode} eq 'B')) { … … 1058 1065 1059 1066 foreach my $mode (@mode_list) { 1060 if ((exists($clean_alternate{$mode})) && ($clean_alternate{$mode} eq 'A')) {1061 my ($cleaning_date,$command) = construct_cleantool_args($date,"",$mode);1062 if ($cleaning_date eq 'no clean') {1063 next;1064 }1065 print STDERR "$command\n";1066 if (!(defined($pretend) || $debug == 1)) {1067 # print STDERR "BEAR IS DRIVING!?\n";1068 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =1069 run ( command => $command, verbose => $verbose );1070 unless ($success) {1071 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);1072 &my_die("Unable to perform stacktool: $error_code", 0,0,$date, $PS_EXIT_SYS_ERROR);1073 }1074 }1075 }1076 else {1067 # if ((exists($clean_alternate{$mode})) && ($clean_alternate{$mode} eq 'A')) { 1068 # my ($cleaning_date,$command) = construct_cleantool_args($date,"",$mode); 1069 # if ($cleaning_date eq 'no clean') { 1070 # next; 1071 # } 1072 # print STDERR "$command\n"; 1073 # if (!(defined($pretend) || $debug == 1)) { 1074 # # print STDERR "BEAR IS DRIVING!?\n"; 1075 # my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 1076 # run ( command => $command, verbose => $verbose ); 1077 # unless ($success) { 1078 # $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 1079 # &my_die("Unable to perform cleantool ($command): $error_code", 0,0,$date, $PS_EXIT_SYS_ERROR); 1080 # } 1081 # } 1082 # } 1083 # else { 1077 1084 foreach my $target (@target_list) { 1078 1085 if (exists($noclean_list{$target})) { … … 1090 1097 unless ($success) { 1091 1098 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 1092 &my_die("Unable to perform stacktool: $error_code", 0,0,$date, $PS_EXIT_SYS_ERROR);1099 &my_die("Unable to perform cleantool ($command): $error_code", 0,0,$date, $PS_EXIT_SYS_ERROR); 1093 1100 } 1094 1101 } 1095 1102 } 1096 }1103 # } 1097 1104 } 1098 1105 return(0); -
tags/ipp-20100701/ippconfig/recipes/nightly_science.config
- Property svn:mergeinfo changed
/trunk/ippconfig/recipes/nightly_science.config merged: 28875
r28810 r28876 46 46 # COMMENT STR M31% 47 47 STACKABLE BOOL TRUE 48 DIST S16 30 48 49 END 49 50 TARGETS METADATA … … 54 55 # COMMENT STR %MD01% 55 56 STACKABLE BOOL TRUE 57 DIST S16 30 56 58 END 57 59 TARGETS METADATA … … 62 64 # COMMENT STR %MD02% 63 65 STACKABLE BOOL TRUE 66 DIST S16 30 64 67 END 65 68 TARGETS METADATA … … 70 73 # COMMENT STR %MD03% 71 74 STACKABLE BOOL TRUE 75 DIST S16 30 72 76 END 73 77 TARGETS METADATA … … 78 82 # COMMENT STR %MD04% 79 83 STACKABLE BOOL TRUE 84 DIST S16 30 80 85 END 81 86 TARGETS METADATA … … 86 91 # COMMENT STR %MD05% 87 92 STACKABLE BOOL TRUE 93 DIST S16 30 88 94 END 89 95 TARGETS METADATA … … 94 100 # COMMENT STR %MD06% 95 101 STACKABLE BOOL TRUE 102 DIST S16 30 96 103 END 97 104 TARGETS METADATA … … 102 109 # COMMENT STR %MD07% 103 110 STACKABLE BOOL TRUE 111 DIST S16 30 104 112 END 105 113 TARGETS METADATA … … 110 118 # COMMENT STR %MD08% 111 119 STACKABLE BOOL TRUE 120 DIST S16 30 112 121 END 113 122 TARGETS METADATA … … 118 127 # COMMENT STR %MD09% 119 128 STACKABLE BOOL TRUE 129 DIST S16 30 120 130 END 121 131 TARGETS METADATA … … 126 136 # COMMENT STR %MD10% 127 137 STACKABLE BOOL TRUE 138 DIST S16 30 128 139 END 129 140 TARGETS METADATA … … 150 161 # OBJECT STR 3PI 151 162 STACKABLE BOOL FALSE 163 CHIP S16 14 164 DIFF S16 14 152 165 END 153 166 # This is a hack, and I freely admit it. - Property svn:mergeinfo changed
Note:
See TracChangeset
for help on using the changeset viewer.
