Changeset 33324 for trunk/pstamp/scripts/pstamp_job_run.pl
- Timestamp:
- Feb 21, 2012, 4:11:24 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstamp_job_run.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_job_run.pl
r33141 r33324 79 79 my $ppstamp = can_run('ppstamp') or (warn "Can't find ppstamp" and $missing_tools = 1); 80 80 my $pstamp_get_image_job = can_run('pstamp_get_image_job.pl') or (warn "Can't find pstamp_get_image_job.pl" and $missing_tools = 1); 81 my $dquery parse = can_run('dqueryparse.pl') or (warn "Can't find dqueryparse.pl" and $missing_tools = 1);81 my $dquery_job_run = can_run('dquery_job_run.pl') or (warn "Can't find dquery_job_run.pl" and $missing_tools = 1); 82 82 my $streaksreplace = can_run('streaksreplace') or (warn "Can't find streaksreplace" and $missing_tools = 1); 83 83 my $magicdstool = can_run('magicdstool') or (warn "Can't find magicdstool" and $missing_tools = 1); … … 303 303 } 304 304 } elsif ($jobType eq "detect_query") { 305 # detect_query jobs are basically holders to note that we need a file updated before we can continue. 306 # Load the argument list that dqueryparse should have created the first time it ran, so we know how to 307 # run it again the same way. 308 my $outdir = dirname($outputBase); 309 my $argslist = "$outdir/parse.args"; 310 open ARGSLIST, "<$argslist" or my_die("failed to open argslist file $argslist", $job_id, $PS_EXIT_UNKNOWN_ERROR); 311 my $argString = <ARGSLIST>; 312 close ARGSLIST; 313 chomp $argString; 305 # my $outdir = dirname($outputBase); 306 # my $argslist = "$outdir/parse.args"; 307 # open ARGSLIST, "<$argslist" or my_die("failed to open argslist file $argslist", $job_id, $PS_EXIT_UNKNOWN_ERROR); 308 # my $argString = <ARGSLIST>; 309 # close ARGSLIST; 310 # chomp $argString; 314 311 315 312 # XXX: should we do any other sanity checking? 316 my_die("arglist file $argslist is empty", $job_id, $PS_EXIT_DATA_ERROR) if !$argString;317 318 my $command = "$dquery parse --job_id $job_id $argString";313 # my_die("arglist file $argslist is empty", $job_id, $PS_EXIT_DATA_ERROR) if !$argString; 314 315 my $command = "$dquery_job_run --job_id $job_id --output_base $outputBase"; 319 316 $command .= " --dbname $dbname" if $dbname; 320 317 $command .= " --dbserver $dbserver" if $dbserver; … … 329 326 } else { 330 327 $jobStatus = $error_code >> 8; 331 my_die("dquery parse.pl failed with error code: $jobStatus", $job_id, $jobStatus);328 my_die("dquery_job_run.pl failed with error code: $jobStatus", $job_id, $jobStatus); 332 329 } 333 330 } elsif ($jobType eq "child") {
Note:
See TracChangeset
for help on using the changeset viewer.
