IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41584


Ignore:
Timestamp:
May 15, 2021, 8:41:21 AM (5 years ago)
Author:
eugene
Message:

import modifications from ippitc

Location:
trunk/pstamp/scripts
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/dquery_job_run.pl

    r41479 r41584  
    121121my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    122122    run(command => $command, verbose => $verbose);
     123## MEH need to adjust error_code to rc
    123124unless ($success) {
    124125    my $rc = $error_code >> 8;
     
    388389    $exit_code = $PS_EXIT_PROG_ERROR unless defined $exit_code;
    389390
    390     carp("$message : $QUERY_ID $FPA_ID $MJD_OBS $FILTER $OBSCODE $STAGE");
     391    #carp("$message : $QUERY_ID $FPA_ID $MJD_OBS $FILTER $OBSCODE $STAGE");
     392    carp("$message : $QUERY_ID $FPA_ID $MJD_OBS $FILTER $OBSCODE $STAGE $exit_code");
     393
    391394    exit($exit_code);
    392395
  • trunk/pstamp/scripts/dqueryparse.pl

    r41478 r41584  
    385385                    ($query{$fpa_id}{STATE}[$valid_index] eq 'drop') or
    386386                    ($query{$fpa_id}{STATE}[$valid_index] eq 'error_cleaned') or
    387                     ($query{$fpa_id}{DATA_STATE}[$valid_index] eq 'error_cleaned') or
     387                    ($query{$fpa_id}{DATA_STATE}[$valid_index] eq 'error_cleaned') or
    388388                    ($query{$fpa_id}{STATE}[$valid_index] eq 'goto_scrubbed') or
    389389                    ($query{$fpa_id}{DATA_STATE}[$valid_index] eq 'scrubbed')) {
     
    391391                    # image is gone and it's not coming back
    392392                    $query{$fpa_id}{FAULT}[$valid_index] = $PSTAMP_GONE;
    393                     ## MEH error_cleaned isn't necessarily gone though
    394                     ## if BAD_COMPONENT not set then doesn't get added to faulted_rows list (others need this too?)
    395                     $query{$fpa_id}{BAD_COMPONENT}[$valid_index] = 1;
     393                    ## MEH why was this missing? should be added to other FAULT cases...
     394                    ## messes with row order, skipping the faulted rows on output, unclear if problem since happens in other cases too
     395                    $query{$fpa_id}{BAD_COMPONENT}[$valid_index] = 1;
    396396                }
    397397                elsif ($need_magic and ($query{$fpa_id}{MAGICKED}[$valid_index] eq 0)) {
  • trunk/pstamp/scripts/pstamp_job_run.pl

    r41480 r41584  
    611611                    print STDERR "file $f is not available\n";
    612612                    $return_code = 0;
    613                     ## MEH doesn't look like return_code is even used from check_files...
    614                     ## if file is not available, why is my_die not called with PSTAMP_NOT_AVAILABLE?
    615                     ## is this only the case when neb-host down and fails to wait for fix?
    616                     ## with multiple data nodes down, this needs to be a fault case
    617                     my_die( "file $f is not available:", $job_id, $error_code, 'stop');
     613                    ## MEH 20210127 doesn't look like return_code is even used from check_files...
     614                    ## if file is not available, why is my_die not called with PSTAMP_NOT_AVAILABLE?
     615                    ## is this only the case when neb-host down and fails to wait for fix?
     616                    ## with multiple data nodes down, this needs to be a fault case
     617                    my_die( "file $f is not available:", $job_id, $error_code, 'stop');
    618618                }
    619619            } else {
  • trunk/pstamp/scripts/pstamp_server_status

    r41497 r41584  
    124124        if ($controller_state) {
    125125            print $br . "Pantasks Controller $controller_state.\n";
    126             # loading active labels
    127             my $runlabels = `echo \"show.labels; quit\" \| pantasks_client -c ~ippitc/pstamp/ptolemy.rc \| tail -n +7`;
    128             print $br."current labels: \n".$runlabels."\n";
    129126        } else {
    130127            print STDERR "Controller state not found";
Note: See TracChangeset for help on using the changeset viewer.