IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 17, 2014, 2:17:50 PM (12 years ago)
Author:
eugene
Message:

merge previously-unmerged changes from ops tag (20130712): add stsci1X series nodes to skycell targetting; some minor changes to processing tasks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/survey.pro

    r35884 r37076  
    668668    end
    669669   
    670 #    echo $run
    671670    command $run
    672671  end
     
    752751    end
    753752   
    754 #    echo $run
    755753    command $run
    756754  end
     
    838836    end
    839837   
    840     # echo $run
    841838    command $run
    842839  end
     
    14371434  host local
    14381435 
    1439   periods      -poll $SURVEY_POLL
    1440   periods      -exec $SURVEY_EXEC
     1436  # we are going to use a long timeout (900 sec) between passes of the list
     1437  # and a short timeout (10 sec) while we are doing the full list
     1438  periods      -exec 10
     1439  periods      -poll 2
    14411440  periods      -timeout $SURVEY_TIMEOUT
    14421441  npending     1
     
    14491448    book npages SURVEY_PUBLISH -var N
    14501449    if ($N == 0)
    1451     # echo "No labels for processing"
     1450      # echo "No labels for processing"
    14521451      break
    14531452    endif
     1453
     1454    # short timeout while we have something to do
     1455    periods -exec 10
    14541456
    14551457    # survey.publish allows multiple entries per label.
     
    14651467      book getpage SURVEY_PUBLISH 0 -var tag -key STATE NEW
    14661468
    1467       # Select different database
    1468       $SURVEY_PUBLISH ++
    1469       if ($SURVEY_PUBLISH >= $DB:n) set SURVEY_PUBLISH = 0
     1469      # Select different database, set a long timeout
     1470      $SURVEY_PUBLISH_DB ++
     1471      if ($SURVEY_PUBLISH_DB >= $DB:n) set SURVEY_PUBLISH_DB = 0
     1472      periods -exec 900
     1473      date -var mytime
     1474      echo "done with publish list @ $mytime"
    14701475    end
    14711476
     
    14841489      option DEFAULT
    14851490    else
    1486       $run = $run -dbname $DB:$SURVEY_PUBLISH
    1487       option $DB:$SURVEY_PUBLISH
     1491      $run = $run -dbname $DB:$SURVEY_PUBLISH_DB
     1492      option $DB:$SURVEY_PUBLISH_DB
    14881493    end
    14891494   
    14901495    # echo $run
    1491 
    14921496    command $run
    14931497   
     
    18591863    end
    18601864   
    1861      echo $run
    18621865    command $run
    18631866  end
Note: See TracChangeset for help on using the changeset viewer.