IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29330


Ignore:
Timestamp:
Oct 5, 2010, 3:35:07 PM (16 years ago)
Author:
bills
Message:

various postage stamp server fixes

Location:
trunk/pstamp/scripts
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/Makefile.am

    r29085 r29330  
    2020        pstamp_get_image_job.pl \
    2121        psmkreq \
     22        pstampstopfaulted \
    2223        pstamp_checkdependent.pl \
    2324        request_finish.pl \
  • trunk/pstamp/scripts/pstamp_finish.pl

    r28229 r29330  
    191191            my $filter = $job_params->{filter};
    192192            $filter = "0" if !$filter;
    193             $exp_info = "0|0|0|$filter|0|0";
     193            my $mjd_obs = $job_params->{mjd_obs};
     194            $mjd_obs = "0" if !$mjd_obs;
     195            $exp_info = "$mjd_obs|0|0|$filter|0|0";
    194196        }
    195197
     
    477479    my $ticks = timegm($sec, $min, $hr, $day, $mon-1, $year-1900);
    478480
     481    # dateobs is UTC convert to TAI
     482    # XXX: Do this properly
     483    if ($year >= 2009) {
     484        $ticks += 34;
     485    } else {
     486        $ticks += 33;
     487    }
     488
    479489    return 40587.0 + ($ticks/86400.);
    480490}
  • trunk/pstamp/scripts/pstamp_webrequest.pl

    r29085 r29330  
    3333    'dbname=s'      =>  \$dbname,
    3434    'dbserver=s'    =>  \$dbserver,
    35     'project=s'     => \$project,
     35#    'project=s'     => \$project,
    3636    'verbose'       => \$verbose,
    3737);
  • trunk/pstamp/scripts/pstampparse.pl

    r28878 r29330  
    806806    my ($r_jobState, $r_fault, $r_dep_id, $imagedb, $state, $stage, $stage_id, $component, $need_magic) = @_;
    807807
    808     # XXX: The update process for warp and subsequent stages requires # destreaking to be performed
    809     # because the -pending queries require the inputs to have magicked >= 0
    810     # The case of stack-stack diffs not needing to be destreaked is taken care of in pstamp_checkdependent
    811     $need_magic = 1 if $imagedb eq 'gpc1';
     808    if (($stage ne 'chip') and ($stage ne 'raw')) {
     809        # XXX: The update process for warp and subsequent stages requires that destreaking to be performed
     810        # because the -pending queries require the inputs to have magicked >= 0
     811        # This is too conservative. For example stage is warp and the warp has never been destreaked we don't
     812        # need magic either
     813        # The case of stack-stack diffs not needing to be destreaked is taken care of in pstamp_checkdependent
     814        # maybe we should put all of the smarts there and interpret the need_magic flag in the dependent as
     815        # "The client needs to have magic performed" and let
     816        # XXX: note the very nasty hard coding of gpc1
     817        $need_magic = 1 if $imagedb eq 'gpc1';
     818    }
    812819
    813820    # chipRun's can be in full state if destreaking is necessary
     
    900907                    $$r_newState = 'stop';
    901908                    $$r_fault = $PSTAMP_NOT_AVAILABLE;
    902                 } elsif (!$image->{magicked}) {
     909                } elsif ($need_magic and !$image->{magicked}) {
    903910                    $$r_newState = 'stop';
    904911                    $$r_fault = $PSTAMP_NOT_DESTREAKED;
Note: See TracChangeset for help on using the changeset viewer.