Changeset 9104 for trunk/ippTasks/detrend.stack.pro
- Timestamp:
- Oct 2, 2006, 12:36:59 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/detrend.stack.pro (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/detrend.stack.pro
r9081 r9104 15 15 ## STATE DET_ID ITER TYPE CLASS_ID CAMERA 16 16 17 queueinit Detrend ClassIDtoStack17 queueinit DetrendStackClass 18 18 if ($?network == 0) 19 19 $network = 1 … … 24 24 25 25 # select images ready for copy 26 # new entries are added to queue Detrend ClassIDtoStack26 # new entries are added to queue DetrendStackClass 27 27 # compare the new list with the ones already selected 28 28 task dettool.stack.load … … 54 54 $CLASS_ID = $word:3 55 55 $CAMERA = $word:4 56 echo queuepush Detrend ClassIDtoStack-uniq -key 1:2:4 "NEW $DET_ID $ITER $TYPE $CLASS_ID $CAMERA"57 queuepush Detrend ClassIDtoStack-uniq -key 1:2:4 "NEW $DET_ID $ITER $TYPE $CLASS_ID $CAMERA"56 echo queuepush DetrendStackClass -uniq -key 1:2:4 "NEW $DET_ID $ITER $TYPE $CLASS_ID $CAMERA" 57 queuepush DetrendStackClass -uniq -key 1:2:4 "NEW $DET_ID $ITER $TYPE $CLASS_ID $CAMERA" 58 58 end 59 59 60 60 # delete existing entries which are DONE 61 queuedrop Detrend ClassIDtoStack-key 0 DONE61 queuedrop DetrendStackClass -key 0 DONE 62 62 end 63 63 64 64 # locked list 65 task.exit 166 echo "new.images: exec failure"67 end68 69 # default exit status70 65 task.exit default 71 echo " new.images: unknown exit status: $EXIT"66 echo "detrend.stack: failure" 72 67 end 73 68 74 69 # operation times out? 75 70 task.exit timeout 76 echo " new.images: timeout"71 echo "detrend.stack: timeout" 77 72 end 78 73 end 79 74 80 75 # copy new images, sending job to desired host 81 task dettool.stack. process76 task dettool.stack.run 82 77 periods -poll 0.5 83 78 periods -exec 1.0 … … 85 80 86 81 task.exec 87 queuesize Detrend ClassIDtoStack-var N82 queuesize DetrendStackClass -var N 88 83 89 84 if ($N == 0) break 90 85 if ($network == 0) break 91 86 92 # look for new images on the internal Detrend ClassIDtoStackqueue87 # look for new images on the internal DetrendStackClass queue 93 88 # caution with these 'if' statements: syntax errors 94 89 # will make the task fail without given a good status 95 queuepop Detrend ClassIDtoStack-var line -key 0 NEW90 queuepop DetrendStackClass -var line -key 0 NEW 96 91 if ("$line" == "NULL") break 97 92 98 93 strpop line state 99 queuepush Detrend ClassIDtoStack-replace -key 1:2:4 "RUN $line"94 queuepush DetrendStackClass -replace -key 1:2:4 "RUN $line" 100 95 101 # the Detrend ClassIDtoStackqueue contains:96 # the DetrendStackClass queue contains: 102 97 # STATE DET_ID ITER TYPE CLASS_ID 103 98 ## NOTE: the queue has the STATE prepended … … 108 103 $TYPE = $word:2 109 104 $CLASS_ID = $word:3 110 $CAMERA = $word: 3105 $CAMERA = $word:4 111 106 112 107 stdout $CAMERA.$TYPE.$DET_ID.$ITER.$CLASS_ID.log … … 129 124 # success 130 125 task.exit 0 131 queuepush Detrend ClassIDtoStack-replace -key 1:2:4 "DONE $options:0"126 queuepush DetrendStackClass -replace -key 1:2:4 "DONE $options:0" 132 127 end 133 128 134 129 # default exit status 135 130 task.exit default 136 queuepush Detrend ClassIDtoStack-replace -key 1:2:4 "FAIL $options:0"131 queuepush DetrendStackClass -replace -key 1:2:4 "FAIL $options:0" 137 132 end 138 133 139 134 # operation times out? 140 135 task.exit timeout 141 queuepush Detrend ClassIDtoStack-replace -key 1:2:4 "TIMEOUT $options:0"136 queuepush DetrendStackClass -replace -key 1:2:4 "TIMEOUT $options:0" 142 137 end 143 138 end
Note:
See TracChangeset
for help on using the changeset viewer.
