Changeset 15173 for trunk/ippTasks/summit.copy.pro
- Timestamp:
- Oct 2, 2007, 6:03:37 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/summit.copy.pro (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/summit.copy.pro
r15170 r15173 1 1 ## PanTasks scripts for Summit Copy 2 2 3 #$uri = http://otis/ds/skyprobe/ 4 #$uri = http://otis4.ifa.hawaii.edu/ds/allskycam/ 5 #$camera = allskycam 6 #$telescope = zl 7 #$workdir = /data/ipp004.0/allskycam 8 #$workdir = /data/ipp006.0/gpc1 3 # pztool -adddatastore -inst isp -telescope ps1 -uri http://otis1.ifa.hawaii.edu/ds/skyprobe/index.txt 4 # pztool -adddatastore -inst gpc1 -telescope ps1 -uri http://conductor/ds/gpc1/index.txt 5 # pztool -adddatastore -inst allskycam -telescope ps1 -uri http://otis1.ifa.hawaii.edu/ds/allskycam/index.txt 6 9 7 $workdir = /export/ipp010.0/ 10 8 … … 18 16 end 19 17 20 # book for summit exps that need to be queried 18 # list of DataStores to pull data from 19 book init pzDataStore 20 # list of summit exps that need to be queried 21 21 book init pzPendingExp 22 # book forsummit imfiles that need to be downloaded22 # list of summit imfiles that need to be downloaded 23 23 book init pzPendingImfile 24 24 25 # build a book of datastores to poll for data 26 task pztool.datastore 27 command pztool -datastore 28 host local 29 30 # timeout shorter than exec so jobs do not build up 31 periods -exec 15 32 periods -poll 1 33 periods -timeout 15 34 35 # success 36 task.exit 0 37 # flush pzDataStore book 38 book init pzDataStore 39 # convert 'stdout' to book format 40 ipptool2book stdout pzDataStore -key camera:telescope -uniq 41 end 42 43 task.exit default 44 showcommand failure 45 end 46 task.exit timeout 47 showcommand timeout 48 end 49 end 50 51 $datastore_index = 0 52 25 53 # run pzgetexp periodically to populate pzPendingExp in the database (no I/O) 26 task pzgetexp .gpc154 task pzgetexp 27 55 # timeout shorter than exec so jobs do not build up 28 periods -exec 1 556 periods -exec 10 29 57 periods -poll 1 30 periods -timeout 1558 periods -timeout 5 31 59 host local 32 60 33 61 task.exec 34 $uri = http://conductor/ds/gpc1/index.txt 35 $camera = gpc1 36 $telescope = ps1 37 38 $run = pzgetexp -uri $uri -inst $camera -telescope $telescope 39 # echo command $run 62 # find an exp that needs imfiles fetched 63 book getpage pzDataStore $datastore_index -var pageName 64 if ("$pageName" == "NULL") break 65 66 # increment our pzDataStore index and loop back to 0 and the end of the 67 # book 68 $datastore_index ++ 69 book npages pzDataStore -var npages 70 if ($datastore_index == $npages ) 71 $datastore_index = 0 72 end 73 74 book getword pzDataStore $pageName camera -var CAMERA 75 book getword pzDataStore $pageName telescope -var TELESCOPE 76 book getword pzDataStore $pageName uri -var URI 77 78 # store the current page 79 options $pageName 80 81 $run = pzgetexp -uri $URI -inst $CAMERA -telescope $TELESCOPE 82 83 # create the command line 84 if ($VERBOSE > 1) 85 echo command $run 86 end 87 40 88 command $run 41 89 end 42 43 task.exit 044 end45 46 task.exit default47 showcommand failure48 end49 task.exit timeout50 showcommand timeout51 end52 end53 54 task pzgetexp.allskycam55 # timeout shorter than exec so jobs do not build up56 periods -exec 1557 periods -poll 158 periods -timeout 1559 host local60 61 task.exec62 $uri = http://otis1.ifa.hawaii.edu/ds/allskycam/index.txt63 $camera = allskycam64 $telescope = ps165 $run = pzgetexp -uri $uri -inst $camera -telescope $telescope66 # echo command $run67 command $run68 end69 70 71 task.exit 072 end73 74 task.exit default75 showcommand failure76 end77 task.exit timeout78 showcommand timeout79 end80 end81 82 task pzgetexp.isp83 # timeout shorter than exec so jobs do not build up84 periods -exec 1585 periods -poll 186 periods -timeout 1587 host local88 89 task.exec90 $uri = http://otis1.ifa.hawaii.edu/ds/skyprobe/index.txt91 $camera = isp92 $telescope = ps193 $run = pzgetexp -uri $uri -inst $camera -telescope $telescope94 # echo command $run95 command $run96 end97 98 90 99 91 task.exit 0
Note:
See TracChangeset
for help on using the changeset viewer.
