Changeset 25540
- Timestamp:
- Sep 24, 2009, 12:06:55 PM (17 years ago)
- Location:
- trunk/pstamp/scripts
- Files:
-
- 2 edited
-
pstamp_finish.pl (modified) (4 diffs)
-
pstampparse.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_finish.pl
r25317 r25540 177 177 my $exp_id = $job->{exp_id}; 178 178 179 if ( $fault eq $PSTAMP_DUP_REQUEST) {179 if (($fault eq $PSTAMP_DUP_REQUEST) and ($req_name eq "NULL")) { 180 180 # this request had a duplicate request name. We can't put the results 181 181 # on the data store since the product name is already used … … 183 183 stop_request_and_exit($req_id, $fault); 184 184 } 185 186 185 my ($row, $req_info, $project) = get_request_info($rows, $rownum); 187 186 … … 202 201 } 203 202 204 if (($job_type eq "stamp") || ($job_type eq "get_image") ) {203 if (($job_type eq "stamp") || ($job_type eq "get_image") || ($job_type eq "none")) { 205 204 my $jreglist = "$out_dir/reglist$job_id"; 206 205 if (open JRL, "<$jreglist") {; … … 302 301 my $rownum = shift; 303 302 303 if ($rownum eq 0) { 304 my $dummy_rowinfo = "0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|"; 305 return (undef, $dummy_rowinfo, "none"); 306 } 304 307 my $row = $rows->{$rownum}; 308 305 309 306 310 # these may be set to null during processing -
trunk/pstamp/scripts/pstampparse.pl
r25368 r25540 16 16 use File::Basename qw(basename); 17 17 use Carp; 18 use POSIX qw( strftime ); 18 19 19 20 my $verbose; … … 98 99 my_die("wrong EXTVER $extver found in $request_file_name", $PS_EXIT_PROG_ERROR) if ($extver ne "1"); 99 100 101 100 102 # check for duplicate request name 103 my $duplicate_req_name = 0; 101 104 if ($req_id and !$no_update) { 102 105 my $command = "$pstamptool -listreq -name $req_name -not_req_id $req_id"; … … 109 112 if ($success) { 110 113 # -listreq succeeded duplicate request name 114 print STDERR "REQ_NAME $req_name has already been used\n"; 111 115 insertFakeJobForRow(undef, 0, $PSTAMP_DUP_REQUEST); 112 exit 0; 116 $duplicate_req_name = 1; 117 my $datestr = strftime "%Y%m%d%H%M%S.$req_id", gmtime; 118 $req_name = "ERROR.$datestr"; 119 #exit 0; 113 120 } 114 121 } … … 126 133 my_die("$command failed", $PS_EXIT_UNKNOWN_ERROR); 127 134 } 135 } 136 if ($duplicate_req_name) { 137 exit 0; 128 138 } 129 139
Note:
See TracChangeset
for help on using the changeset viewer.
