IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 1, 2009, 5:28:52 PM (17 years ago)
Author:
bills
Message:

on receive side of distribution, optionally create a fileset in a status data store
defer {$stage}tool -importrun until all of the files have been downloaded
in the dist.queuruns task queue rcruns

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/dist_queue_runs.pl

    r24001 r24038  
    9898}
    9999
     100# queue rcRuns for any distRuns that have completed and have interested destinations
     101{
     102    my $command = "$disttool -queuercrun";
     103    $command .= " -dbname $dbname" if defined $dbname;
     104    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     105        run(command => $command, verbose => $verbose);
     106    unless ($success) {
     107        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     108        &my_die("Unable to perform $command error_code: $error_code", $error_code);
     109    }
     110    # display the output from the command
     111    print STDERR join "", @$stdout_buf if $verbose;
     112}
     113
    100114exit 0;
    101115
Note: See TracChangeset for help on using the changeset viewer.