Changeset 11008
- Timestamp:
- Jan 10, 2007, 7:45:07 AM (19 years ago)
- File:
-
- 1 edited
-
branches/eam_branch_00/ippTasks/phase2.pro (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_00/ippTasks/phase2.pro
r11001 r11008 30 30 31 31 macro phase2.status 32 queueprint Phase2Imfiles32 book listbook p2pending 33 33 echo "Phase2ImfileFail: $Phase2ImfileFail" 34 34 end … … 49 49 task.exec 50 50 # command p2tool -pendingimfile -simple -limit {$Phase2ImfileFail + 20} 51 command p2tool -pendingimfile 51 # XXX make sure we remove FAIL and TIMEOUT entries 52 command p2tool -pendingimfile -limit 20 52 53 end 53 54 54 55 # success 55 56 task.exit 0 56 # convert output to book format 57 # stdout from the task is stored on queue 'stdout' 58 # convert 'stdout' to book format 57 59 # only add entries which don't exist in the book 60 # 'state' has value of NULL 58 61 ipptool2book stdout p2pending -key exp_tag:class_id -uniq 59 62 if ($VERBOSE > 2) … … 83 86 84 87 task.exec 85 # XXX make equiv book command:86 88 book npages p2pending -var N 87 89 if ($N == 0) break … … 91 93 # caution with these 'if' statements: syntax errors 92 94 # will make the task fail without given a good status 93 # XXX pop off the bottom or the top? 94 book getpage p2pending 0 -var pageName 95 book setword p2pending $pageName status RUN 95 book getpage p2pending 0 -var pageName -key state NULL 96 book setword p2pending $pageName state RUN 96 97 98 book getword p2pending $pageName camera -var CAMERA 97 99 book getword p2pending $pageName exp_tag -var EXP_TAG 98 100 book getword p2pending $pageName class_id -var CLASS_ID … … 121 123 # create the command line 122 124 if ($VERBOSE > 1) 123 echo command phase2.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI 125 echo command phase2.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI --camera $CAMERA 124 126 end 125 ## XXX this is annoying: phase2.pl now requires camera :: it should not need this, it has the file. 126 command phase2.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI --camera CTIO_MOSAIC2 127 command phase2.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI --camera $CAMERA 127 128 end 128 129 … … 130 131 task.exit 0 131 132 # phase2imfile.pl updates DB tables, here we just update the queue 132 book setword p2pending $options:0 stat usDONE133 book setword p2pending $options:0 state DONE 133 134 # queuepush Phase2Imfiles -replace -key 1:2 "DONE $options:0" 134 135 end … … 137 138 task.exit default 138 139 showcommand failure 139 book setword p2pending $options:0 stat usFAIL140 book setword p2pending $options:0 state FAIL 140 141 # queuepush Phase2Imfiles -replace -key 1:2 "FAIL $options:0" 142 # drop failed entries from the book lists? 141 143 $Phase2ImfileFail ++ 142 144 end … … 145 147 task.exit timeout 146 148 showcommand timeout 147 book setword p2pending $options:0 stat usTIMEOUT149 book setword p2pending $options:0 state TIMEOUT 148 150 # queuepush Phase2Imfiles -replace -key 1:2 "TIMEOUT $options:0" 149 151 $Phase2ImfileFail ++
Note:
See TracChangeset
for help on using the changeset viewer.
