Changeset 36948
- Timestamp:
- Jul 1, 2014, 2:11:26 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/remote.pro (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/remote.pro
r36852 r36948 10 10 11 11 $remote_label_iter = 0 12 $remote_label_iter2 = 0 12 13 $remote_stage_iter = 0 13 14 $remoteP_DB = 0 … … 18 19 chip 19 20 camera 20 warp21 # warp 21 22 stack 22 23 end 23 24 24 task remote.define.chip 25 macro remote.off 26 task remote.define 27 active false 28 end 29 task remote.define.warp 30 active false 31 end 32 task remote.prep.load 33 active false 34 end 35 task remote.prep.run 36 active false 37 end 38 task remote.exec.load 39 active false 40 end 41 task remote.exec.run 42 active false 43 end 44 task remote.poll.load 45 active false 46 end 47 task remote.poll.run 48 active false 49 end 50 end 51 52 macro remote.on 53 task remote.define 54 active true 55 end 56 task remote.define.warp 57 active true 58 end 59 task remote.prep.load 60 active true 61 end 62 task remote.prep.run 63 active true 64 end 65 task remote.exec.load 66 active true 67 end 68 task remote.exec.run 69 active true 70 end 71 task remote.poll.load 72 active true 73 end 74 task remote.poll.run 75 active true 76 end 77 end 78 79 80 task remote.define 25 81 host local 26 82 periods -poll $LOADPOLL … … 46 102 47 103 $run = remotetool -definebyquery -label $label -stage $stage -path_base neb://@HOST@.0/remote/$label 104 if ($DB:n == 0) 105 option DEFAULT 106 else 107 option $DB:$remoteP_DB 108 $run = $run -dbname $DB:$remoteP_DB 109 $remoteP_DB ++ 110 if ($remoteP_DB >= $DB:n) set remoteP_DB = 0 111 end 112 48 113 echo $run 49 114 command $run … … 66 131 end 67 132 133 task remote.define.warp 134 host local 135 periods -poll $LOADPOLL 136 periods -exec 1800 137 periods -timeout 30 138 npending 1 139 140 task.exec 141 stdout NULL 142 stderr $LOGDIR/remote.define.chip 143 144 $label = $LABEL:$remote_label_iter2 145 146 if ($remote_label_iter >= $LABEL:n) set remote_label_iter = 0 147 echo $remote_label_iter $label warp 148 149 $run = remotetool -definebyquery -label $label -stage warp -path_base neb://@HOST@.0/remote/$label 150 if ($DB:n == 0) 151 option DEFAULT 152 else 153 option $DB:$remoteP_DB 154 $run = $run -dbname $DB:$remoteP_DB 155 $remoteP_DB ++ 156 if ($remoteP_DB >= $DB:n) set remoteP_DB = 0 157 end 158 159 echo $run 160 command $run 161 162 end 163 # success 164 task.exit 0 165 end 166 # locked list 167 task.exit default 168 showcommand failure 169 end 170 task.exit crash 171 showcommand crash 172 end 173 #operation times out? 174 task.exit timeout 175 showcommand timeout 176 end 177 end 68 178 69 179 task remote.prep.load
Note:
See TracChangeset
for help on using the changeset viewer.
