IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 9, 2013, 11:26:59 AM (13 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20130419/ippTasks
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130419/ippTasks

  • branches/eam_branches/ipp-20130419/ippTasks/nightly_stacks.pro

    r33166 r35546  
    621621  periods         -poll $LOADPOLL
    622622  periods         -exec $LOADEXEC
    623   periods         -timeout 120
     623  periods         -timeout 900 # this task can be quite slow
    624624  npending        1
    625625
  • branches/eam_branches/ipp-20130419/ippTasks/pstamp.pro

    r33810 r35546  
    965965
    966966        # XXX: have the script set this up this
    967         $MYLOGFILE=/data/ippdb02.0/pstamp/work/logs/cleanup.$REQ_ID
     967        $MYLOGFILE=/data/ippc17.0/pstamp/work/logs/cleanup.$REQ_ID
    968968        stdout $MYLOGFILE
    969969        stderr $MYLOGFILE
  • branches/eam_branches/ipp-20130419/ippTasks/survey.pro

    r35360 r35546  
    2020 book create SURVEY_LAPGROUP
    2121 book create SURVEY_RELEXP
     22 book create SURVEY_RELSTACK
    2223 $haveSurveyBooks = TRUE
    2324end
    … …  
    3738$SURVEY_LAPGROUP_DB = 0
    3839$SURVEY_RELEXP_DB = 0
     40$SURVEY_RELSTACK_DB = 0
    3941$SURVEY_STATICSKYSINGLE_DB = 0
    4042$SURVEY_EXEC = 120
    4143$SURVEY_POLL = 10
    4244$SURVEY_TIMEOUT = 600
     45# the tasks for loading the release tabels for nightly science do not need to run very often
     46$SURVEY_RELEASE_EXEC 300
    4347
    4448macro survey.on
    … …  
    8892    active true
    8993  end
     94  task survey.relstack
     95    active true
     96  end
    9097end
    9198
    … …  
    134141  end
    135142  task survey.relexp
     143    active false
     144  end
     145  task survey.relstack
    136146    active false
    137147  end
    … …  
    568578  end
    569579  book listbook SURVEY_RELEXP
     580end
     581
     582macro survey.add.relstack
     583  if ($0 != 3)
     584    echo "USAGE: survey.add.relstack (label) (releasename)"
     585    break
     586  end
     587  book newpage SURVEY_RELSTACK $1
     588  book setword SURVEY_RELSTACK $1 LABEL $1
     589  book setword SURVEY_RELSTACK $1 RELEASE_NAME $2
     590  book setword SURVEY_RELSTACK $1 STATE PENDING
     591end
     592
     593macro survey.del.relstack
     594  if ($0 != 2)
     595    echo "USAGE: survey.del.relstack (label)"
     596    break
     597  end
     598  book delpage SURVEY_RELSTACK $1
     599end
     600
     601macro survey.show.relstack
     602  if ($0 != 1)
     603    echo "USAGE: survey.show.relstack"
     604    break
     605  end
     606  book listbook SURVEY_RELSTACK
    570607end
    571608
    … …  
    17061743 
    17071744  periods      -poll $SURVEY_POLL
    1708   periods      -exec $SURVEY_EXEC
     1745  periods      -exec $SURVEY_RELEASE_EXEC
    17091746  periods      -timeout $SURVEY_TIMEOUT
    17101747  npending     1
    … …  
    17701807  end
    17711808end
     1809
     1810task survey.relstack
     1811  host local
     1812 
     1813  periods      -poll $SURVEY_POLL
     1814  periods      -exec $SURVEY_RELEASE_EXEC
     1815  periods      -timeout $SURVEY_TIMEOUT
     1816  npending     1
     1817
     1818  stdout $LOGDIR/survey.relstack.log
     1819  stderr $LOGDIR/survey.relstack.log
     1820
     1821  task.exec
     1822    book npages SURVEY_RELSTACK -var N
     1823    if ($N == 0)
     1824#      echo "No labels for processing"
     1825      break
     1826    endif
     1827
     1828    book getpage SURVEY_RELSTACK 0 -var label -key STATE NEW
     1829    if ("$label" == "NULL")
     1830      # All labels have been done --- reset
     1831#      echo "Resetting labels"
     1832      for i 0 $N
     1833        book getpage SURVEY_RELSTACK $i -var label
     1834        book setword SURVEY_RELSTACK $label STATE NEW
     1835      end
     1836      book getpage SURVEY_RELSTACK 0 -var label -key STATE NEW
     1837
     1838      # Select different database
     1839      $SURVEY_RELSTACK_DB ++
     1840      if ($SURVEY_RELSTACK_DB >= $DB:n) set SURVEY_RELSTACK_DB = 0
     1841    end
     1842
     1843    book setword SURVEY_RELSTACK $label STATE DONE
     1844    book getword SURVEY_RELSTACK $label RELEASE_NAME -var RELEASE_NAME
     1845
     1846    # XXX: Can we use the survey task for stack types other than nightly?
     1847    $run = releasetool -definerelstack -label $label -release_name $RELEASE_NAME -set_state processed -set_stack_type nightly
     1848
     1849    if ($DB:n == 0)
     1850      option DEFAULT
     1851    else
     1852      $run = $run -dbname $DB:$SURVEY_RELSTACK_DB
     1853      option $DB:$SURVEY_RELSTACK_DB
     1854    end
     1855   
     1856     echo $run
     1857    command $run
     1858  end
     1859
     1860  # success
     1861  task.exit    0
     1862#    echo "Success"
     1863  end
     1864
     1865  # locked list
     1866  task.exit    default
     1867    showcommand failure
     1868  end
     1869
     1870  task.exit    crash
     1871    showcommand crash
     1872  end
     1873
     1874  # operation times out?
     1875  task.exit    timeout
     1876    showcommand timeout
     1877  end
     1878end
Note: See TracChangeset for help on using the changeset viewer.