IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 27, 2013, 2:42:06 PM (13 years ago)
Author:
bills
Message:

various changes to support stack_summary pstamp jobs

File:
1 edited

Legend:

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

    r36017 r36048  
    297297    }
    298298    if ($job_type eq 'get_image') {
    299         unless ($req_type eq 'byid' or $req_type eq 'byexp' or ($req_type eq 'byskycell' and $stage eq 'stack')) {
    300             print STDERR "REQ_TYPE must be 'byid' or 'byexp' or byskcyell for stacks for JOB_TYPE 'get_image'\n";
     299        # get_image jobs are quite expensive in terms of space so we are currently restricting them
     300        unless ($req_type eq 'byid' or $req_type eq 'byexp'
     301            or ($req_type eq 'byskycell' and $stage eq 'stack')
     302            or ($stage eq 'stack_summary')) {
     303            print STDERR "REQ_TYPE must be 'byid' or 'byexp' JOB_TYPE 'get_image' for IMG_TYPE $stage\n";
    301304            insertFakeJobForRow($row, 1, $PSTAMP_INVALID_REQUEST);
    302305            return 0;
     
    306309    my $component = $row->{COMPONENT};
    307310    if (!defined $component or (lc($component) eq "null") or (lc($component) eq "all")) {
    308         if ($job_type eq 'get_image') {
     311        if ($job_type eq 'get_image' and ! ($stage eq 'stack' or $stage eq 'stack_summary')) {
    309312            $row->{COMPONENT} = 'all';
    310313        } else {
Note: See TracChangeset for help on using the changeset viewer.