Changeset 10758
- Timestamp:
- Dec 15, 2006, 1:55:55 PM (19 years ago)
- Location:
- trunk/ippTasks
- Files:
-
- 2 edited
-
phase2.pro (modified) (2 diffs)
-
phase3.pro (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/phase2.pro
r10746 r10758 46 46 47 47 task.exec 48 command p2tool -pendingimfile -simple -limit {$Phase2ImfileFail + 20} 48 # command p2tool -pendingimfile -simple -limit {$Phase2ImfileFail + 20} 49 command p2tool -pendingimfile -simple 49 50 end 50 51 … … 133 134 echo command phase2.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI 134 135 end 135 command phase2.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI 136 ## XXX this is annoying: phase2.pl now requires camera :: it should not need this, it has the file. 137 command phase2.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI --camera CTIO_MOSAIC2 136 138 end 137 139 -
trunk/ippTasks/phase3.pro
r9506 r10758 1 1 ## this file contains the tasks for running the phase 0 stage 2 2 3 ## these tasks use the queue Phase3 Imfiles4 ## the Phase3 Imfiles queue contains:3 ## these tasks use the queue Phase3Exposures 4 ## the Phase3Exposures queue contains: 5 5 ## STATE EXP_TAG CLASS CLASS_ID URI-FITS 6 6 ## queue keys are counted from 0 … … 14 14 end 15 15 16 $Phase3ExposureFail = 0 17 18 if ($?VERBOSE == 0) 19 echo "VERBOSE not defined: load pantasks.pro first" 20 break 21 end 22 if ($?LOGDIR == 0) 23 echo "LOGDIR not defined: load pantasks.pro first" 24 break 25 end 26 $LOGSUBDIR = $LOGDIR/phase3 27 exec mkdir -p $LOGSUBDIR 28 29 macro phase3.status 30 queueprint Phase3Exposures 31 echo "Phase3ExposureFail: $Phase3ExposureFail" 32 end 33 16 34 # select images ready for phase3 analysis 17 35 # new entries are added to queue Phase3Exposures 18 36 # compare the new list with the ones already selected 19 37 task phase3.exp.load 20 command p3tool -pendingexp -simple21 38 host local 22 39 … … 25 42 periods -timeout 30 26 43 27 stdout phase3.exp.log 28 stderr phase3.exp.log 44 stdout $LOGSUBDIR/phase3.exp.log 45 stderr $LOGSUBDIR/phase3.exp.log 46 47 task.exec 48 command p3tool -pendingexp -simple 49 end 29 50 30 51 # success … … 37 58 for i 0 $Nqueue 38 59 queuepop stdout -var line 60 if ($VERBOSE > 2) 61 echo $line 62 end 39 63 list word -split $line 40 64 $EXP_TAG = $word:0 … … 48 72 # default exit status 49 73 task.exit default 50 echo "phase3 pending exp: failure"74 showcommand failure 51 75 end 52 76 53 77 # operation times out? 54 78 task.exit timeout 55 echo "phase3 pending exp: timeout"79 showcommand timeout 56 80 end 57 81 end 58 82 59 # run the phase3 imfile script on pending images83 # run the phase3exposure script on pending images 60 84 task phase3.exp.run 61 85 periods -poll $runpoll … … 68 92 if ($network == 0) break 69 93 70 # look for new images on the internal Detrend ImfilesToProcess queue94 # look for new images on the internal DetrendExposuresToProcess queue 71 95 # caution with these 'if' statements: syntax errors 72 96 # will make the task fail without given a good status … … 82 106 $EXP_TAG = $word:0 83 107 84 # XXX add $WORKDIR/$LOG_DIR 85 stdout $EXP_TAG.log 86 stderr $EXP_TAG.log 108 # XXX this is still a lame rule 109 $word = `basename $EXP_TAG | tr '.' ' '` 110 list word -split $word 111 $base = $word:0 112 stdout $LOGSUBDIR/$base/$EXP_TAG.log 113 stderr $LOGSUBDIR/$base/$EXP_TAG.log 114 exec mkdir -p $LOGSUBDIR/$base 87 115 88 116 # specify choice of remote host:(need to choose based on chips) … … 95 123 # create the command line 96 124 options "$line" 97 echo command phase3.pl --exp_tag $EXP_TAG 98 command phase3.pl --exp_tag $EXP_TAG 125 if ($VERBOSE > 1) 126 echo command phase3.pl --exp_tag $EXP_TAG 127 end 128 command phase3.pl --exp_tag $EXP_TAG --camera CTIO_MOSAIC2 99 129 end 100 130 … … 107 137 # default exit status 108 138 task.exit default 139 showcommand failure 109 140 queuepush Phase3Exposures -replace -key 1 "FAIL $options:0" 141 $Phase3ExposureFail ++ 110 142 end 111 143 112 144 # operation times out? 113 145 task.exit timeout 146 showcommand timeout 114 147 queuepush Phase3Exposures -replace -key 1 "TIMEOUT $options:0" 148 $Phase3ExposureFail ++ 115 149 end 116 150 end
Note:
See TracChangeset
for help on using the changeset viewer.
