Changeset 35546 for branches/eam_branches/ipp-20130419/ippTasks
- Timestamp:
- May 9, 2013, 11:26:59 AM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130419/ippTasks
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
nightly_stacks.pro (modified) (1 diff)
-
pstamp.pro (modified) (1 diff)
-
survey.pro (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130419/ippTasks
- Property svn:mergeinfo changed
/trunk/ippTasks merged: 35462,35477,35517
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130419/ippTasks/nightly_stacks.pro
r33166 r35546 621 621 periods -poll $LOADPOLL 622 622 periods -exec $LOADEXEC 623 periods -timeout 120623 periods -timeout 900 # this task can be quite slow 624 624 npending 1 625 625 -
branches/eam_branches/ipp-20130419/ippTasks/pstamp.pro
r33810 r35546 965 965 966 966 # XXX: have the script set this up this 967 $MYLOGFILE=/data/ipp db02.0/pstamp/work/logs/cleanup.$REQ_ID967 $MYLOGFILE=/data/ippc17.0/pstamp/work/logs/cleanup.$REQ_ID 968 968 stdout $MYLOGFILE 969 969 stderr $MYLOGFILE -
branches/eam_branches/ipp-20130419/ippTasks/survey.pro
r35360 r35546 20 20 book create SURVEY_LAPGROUP 21 21 book create SURVEY_RELEXP 22 book create SURVEY_RELSTACK 22 23 $haveSurveyBooks = TRUE 23 24 end … … 37 38 $SURVEY_LAPGROUP_DB = 0 38 39 $SURVEY_RELEXP_DB = 0 40 $SURVEY_RELSTACK_DB = 0 39 41 $SURVEY_STATICSKYSINGLE_DB = 0 40 42 $SURVEY_EXEC = 120 41 43 $SURVEY_POLL = 10 42 44 $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 43 47 44 48 macro survey.on … … 88 92 active true 89 93 end 94 task survey.relstack 95 active true 96 end 90 97 end 91 98 … … 134 141 end 135 142 task survey.relexp 143 active false 144 end 145 task survey.relstack 136 146 active false 137 147 end … … 568 578 end 569 579 book listbook SURVEY_RELEXP 580 end 581 582 macro 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 591 end 592 593 macro survey.del.relstack 594 if ($0 != 2) 595 echo "USAGE: survey.del.relstack (label)" 596 break 597 end 598 book delpage SURVEY_RELSTACK $1 599 end 600 601 macro survey.show.relstack 602 if ($0 != 1) 603 echo "USAGE: survey.show.relstack" 604 break 605 end 606 book listbook SURVEY_RELSTACK 570 607 end 571 608 … … 1706 1743 1707 1744 periods -poll $SURVEY_POLL 1708 periods -exec $SURVEY_ EXEC1745 periods -exec $SURVEY_RELEASE_EXEC 1709 1746 periods -timeout $SURVEY_TIMEOUT 1710 1747 npending 1 … … 1770 1807 end 1771 1808 end 1809 1810 task 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 1878 end
Note:
See TracChangeset
for help on using the changeset viewer.
