Changeset 32832 for trunk/ippTasks/addstar.pro
- Timestamp:
- Nov 29, 2011, 11:46:43 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/addstar.pro (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/addstar.pro
r31376 r32832 26 26 active true 27 27 end 28 task addstar.exp.load.staticsky_multi 29 active true 30 end 28 31 task addstar.exp.run 29 32 active true … … 39 42 end 40 43 task addstar.exp.load.staticsky 44 active false 45 end 46 task addstar.exp.load.staticsky_multi 41 47 active false 42 48 end … … 175 181 end 176 182 end 183 177 184 task addstar.exp.load.staticsky 178 185 host local … … 229 236 end 230 237 end 238 239 task addstar.exp.load.staticsky_multi 240 host local 241 242 periods -poll $LOADPOLL 243 periods -exec $LOADEXEC 244 periods -timeout 30 245 npending 1 246 247 stdout NULL 248 stderr $LOGDIR/addstar.exp.log 249 250 task.exec 251 # if ($LABEL:n == 0) break 252 $run = addtool -pendingexp -stage staticsky_multi 253 if ($DB:n == 0) 254 option DEFAULT 255 else 256 # save the DB name for the exit tasks 257 option $DB:$addstar_DB 258 $run = $run -dbname $DB:$addstar_DB 259 $addstar_DB ++ 260 if ($addstar_DB >= $DB:n) set addstar_DB = 0 261 end 262 add_poll_args run 263 add_poll_labels run 264 command $run 265 end 266 267 # success 268 task.exit 0 269 # convert 'stdout' to book format 270 ipptool2book stdout addPendingExp -key add_id -uniq -setword dbname $options:0 -setword pantaskState INIT 271 if ($VERBOSE > 2) 272 book listbook addPendingExp 273 end 274 275 # delete existing entries in the appropriate pantaskStates 276 process_cleanup addPendingExp 277 end 278 279 # default exit status 280 task.exit default 281 showcommand failure 282 end 283 284 task.exit crash 285 showcommand crash 286 end 287 288 # operation times out? 289 task.exit timeout 290 showcommand timeout 291 end 292 end 293 294 231 295 # run the addstar script on pending exposures 232 296 task addstar.exp.run … … 252 316 book getword addPendingExp $pageName exp_tag -var EXP_TAG 253 317 book getword addPendingExp $pageName add_id -var ADD_ID 318 book getword addPendingExp $pageName stage_extra1 -var STAGE_EXTRA1 254 319 book getword addPendingExp $pageName stageroot -var STAGEROOT 255 320 book getword addPendingExp $pageName stage -var STAGE … … 285 350 sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID 286 351 end 352 if ("$STAGE" == "staticsky_multi") 353 sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID 354 end 287 355 if ("$STAGE" == "stack") 288 356 sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID … … 296 364 if ("$REDUCTION" != "NULL") 297 365 $run = $run --reduction $REDUCTION 366 end 367 if ("$STAGE" == "staticsky_multi") 368 $run = $run --multi_num $STAGE_EXTRA1 298 369 end 299 370 if ("$IMAGE_ONLY" == "T")
Note:
See TracChangeset
for help on using the changeset viewer.
