IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16379


Ignore:
Timestamp:
Feb 8, 2008, 11:28:41 AM (18 years ago)
Author:
eugene
Message:

fixed some minor usage bugs

Location:
trunk
Files:
2 edited

Legend:

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

    r16375 r16379  
    9090    unless ($success) {
    9191        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
    92         &my_die("Unable to perform dsget: $error_code", $exp_name, $inst, $telescope, $class, $class_id, $error_code);
     92        &my_die("Unable to perform dsget: $error_code", $exp_name, $inst, $telescope, $class, $class_id, $uri, $error_code);
    9393    }
    9494} else {
     
    113113    unless ($success) {
    114114        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
    115         warn("Unable to perform pztool -copydone: $error_code\n");
     115        warn("Unable to perform $command: $error_code\n");
    116116        exit($error_code);
    117117    }
     
    122122sub my_die
    123123{
    124     my $msg = shift; # Warning message on die
    125     my $exp_name = shift; # Chiptool identifier
    126     my $inst = shift; # Chiptool identifier
     124    my $msg       = shift; # Warning message on die
     125    my $exp_name  = shift; # Chiptool identifier
     126    my $inst      = shift; # Chiptool identifier
    127127    my $telescope = shift; # Class identifier
    128     my $class = shift; # Class identifier
    129     my $class_id = shift; # Class identifier
     128    my $class     = shift; # Class identifier
     129    my $class_id  = shift; # Class identifier
     130    my $uri       = shift; # Class identifier
    130131    my $exit_code = shift; # Exit code to add
    131132
     
    140141        $command .= " -class $class";
    141142        $command .= " -class_id $class_id";
     143        $command .= " -uri $uri";
    142144        $command .= " -code $exit_code";
    143145        $command .= " -dbname $dbname" if defined $dbname;
  • trunk/ippTasks/summit.copy.pro

    r16376 r16379  
    4444    active true
    4545  end
    46   task dsget
     46  task summit_copy
    4747    active true
    4848  end
     
    6565    active false
    6666  end
    67   task dsget
     67  task summit_copy
    6868    active false
    6969  end
     
    100100
    101101# run pzgetexp periodically to populate pzPendingExp in the database (no I/O)
     102# this task is querying the data store for a list of exposures ("filesets")
     103# and inserting these into a db table on the local cluster (pzPendingExp)
    102104task pzgetexp
    103105  periods      -exec     10
     
    177179end
    178180
    179 # run pzgetimfiles on pending exps
     181# run pzgetimfiles on pending exps.  analogous to pzgetexp, this task
     182# is downloading a list of imfiles reported by the datastore for a
     183# given exposure ("fileset"), and placing the result in the local
     184# database table of imfiles
    180185task pzgetimfile
    181186    periods      -exec     0.05
     
    270275
    271276
    272 # get dsget to retreive an imfile and then call pztool -copydone
    273 task dsget
     277# retreive an imfile with dsget and then call pztool -copydone
     278task summit_copy
    274279    periods      -exec     5
    275280    periods      -poll     0.05
Note: See TracChangeset for help on using the changeset viewer.