Changeset 30446 for branches/eam_branches/ipp-20101205/ippTasks
- Timestamp:
- Jan 31, 2011, 2:51:48 PM (15 years ago)
- Location:
- branches/eam_branches/ipp-20101205/ippTasks
- Files:
-
- 10 edited
- 1 copied
-
Makefile.am (modified) (1 diff)
-
addstar.pro (modified) (1 diff)
-
diff.pro (modified) (3 diffs)
-
dist.pro (modified) (1 diff)
-
ipphosts.mhpcc.config (modified) (9 diffs)
-
magic.cleanup.pro (copied) (copied from trunk/ippTasks/magic.cleanup.pro )
-
nightly_science.pro (modified) (31 diffs)
-
pstamp.pro (modified) (2 diffs)
-
publish.pro (modified) (3 diffs)
-
register.pro (modified) (11 diffs)
-
survey.pro (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101205/ippTasks/Makefile.am
r30102 r30446 17 17 warp.pro \ 18 18 magic.pro \ 19 magic.cleanup.pro \ 19 20 destreak.pro \ 20 21 destreak.cleanup.pro \ -
branches/eam_branches/ipp-20101205/ippTasks/addstar.pro
r28211 r30446 173 173 $run = $run --minidvodb_group $MINIDVODB_GROUP 174 174 if (("$MINIDVODB_NAME" != "NULL") && ("$MINIDVODB_NAME" != "(null)")) 175 $run = $run --minidvodb_name $MINIDVODB_NAME #have addstar_run.pl grab the 'active' name if it is NULL 175 $run = $run --minidvodb_name $MINIDVODB_NAME 176 #have addstar_run.pl grab the 'active' name if it is NULL 176 177 end 177 178 end -
branches/eam_branches/ipp-20101205/ippTasks/diff.pro
r28375 r30446 45 45 end 46 46 task diff.revert 47 active false47 active true 48 48 end 49 49 task diff.summary.load … … 448 448 periods -timeout 120.0 449 449 npending 1 450 active false451 450 452 451 stdout NULL … … 457 456 # Only revert failures with fault=2 (SYS_ERROR), which tend to be 458 457 # temporary filesystem problems. Every other fault type is 459 # interesting and should be kept for debugging (and so it does n't458 # interesting and should be kept for debugging (and so it does not 460 459 # continue to occur). 461 $run = difftool -revertdiffskyfile -fault 2 460 # XXX: actually we are getting enough jobs with fault 4 that work after reverting 461 # that we are going to remove that cut for now 462 # 463 #$run = difftool -revertdiffskyfile -fault 2 464 $run = difftool -revertdiffskyfile 462 465 if ($DB:n == 0) 463 466 option DEFAULT -
branches/eam_branches/ipp-20101205/ippTasks/dist.pro
r29386 r30446 61 61 end 62 62 task dist.revert 63 active false63 active true 64 64 end 65 65 end -
branches/eam_branches/ipp-20101205/ippTasks/ipphosts.mhpcc.config
r28500 r30446 22 22 sky09 STR ipp014 23 23 sky10 STR ipp015 24 sky11 STR ipp0 1624 sky11 STR ipp006 25 25 sky12 STR ipp017 26 26 sky13 STR ipp018 … … 125 125 XY26 STR ipp027 126 126 XY27 STR ipp028 127 XY30 STR ipp0 16127 XY30 STR ipp006 128 128 XY31 STR ipp044 129 129 … … 204 204 ota26 STR ipp027 205 205 ota27 STR ipp028 206 ota30 STR ipp0 16206 ota30 STR ipp006 207 207 ota31 STR ipp044 208 208 … … 298 298 XY11 STR ipp039 299 299 300 XY12 STR ipp00 9300 XY12 STR ipp005 301 301 XY13 STR ipp024 302 302 XY14 STR ipp010 … … 305 305 XY16 STR ipp011 306 306 XY17 STR ipp026 307 XY20 STR ipp0 12307 XY20 STR ipp006 308 308 XY21 STR ipp041 309 309 310 310 XY22 STR ipp013 311 311 XY23 STR ipp042 312 XY24 STR ipp0 14312 XY24 STR ipp007 313 313 XY25 STR ipp043 314 314 315 315 XY26 STR ipp027 316 316 XY27 STR ipp028 317 XY30 STR ipp0 16317 XY30 STR ipp006 318 318 XY31 STR ipp044 319 319 … … 358 358 XY72 STR ipp052 359 359 360 XY73 STR ipp0 53360 XY73 STR ipp007 361 361 XY74 STR ipp015 362 362 XY75 STR ipp025 … … 371 371 sky02 STR ipp007 372 372 sky03 STR ipp008 373 sky04 STR ipp00 9373 sky04 STR ipp005 374 374 sky05 STR ipp010 375 375 sky06 STR ipp011 376 sky07 STR ipp0 12376 sky07 STR ipp006 377 377 sky08 STR ipp013 378 sky09 STR ipp0 14378 sky09 STR ipp007 379 379 sky10 STR ipp015 380 sky11 STR ipp0 16380 sky11 STR ipp006 381 381 sky12 STR ipp017 382 382 sky13 STR ipp018 … … 414 414 sky45 STR ipp051 415 415 sky46 STR ipp052 416 sky47 STR ipp0 53416 sky47 STR ipp007 417 417 sky48 STR ipp023 418 418 sky49 STR ipp024 … … 445 445 sky76 STR ipp051 446 446 sky77 STR ipp052 447 sky78 STR ipp0 53448 END 447 sky78 STR ipp006 448 END -
branches/eam_branches/ipp-20101205/ippTasks/nightly_science.pro
r30102 r30446 7 7 ns.detrends.off 8 8 ns.dqstats.on 9 # ns.sweetspot.on10 # ns.registration.on11 # ns.burntool.on12 # ns.chips.on13 9 ns.stacks.on 14 10 ns.diffs.on … … 19 15 ns.detrends.off 20 16 ns.dqstats.off 21 # ns.sweetspot.off22 # ns.registration.off23 # ns.burntool.off24 # ns.chips.off25 17 ns.stacks.off 26 18 ns.diffs.off … … 53 45 end 54 46 55 # macro ns.sweetspot.on56 # task ns.sweetspot.load57 # active true58 # end59 # end60 61 # macro ns.registration.on62 # task ns.registration.load63 # active true64 # end65 # end66 67 # macro ns.burntool.on68 # task ns.burntool.load69 # active true70 # end71 # task ns.burntool.run72 # active true73 # end74 # end75 76 # macro ns.chips.on77 # task ns.chips.load78 # active true79 # end80 # task ns.chips.run81 # active true82 # end83 # end84 85 47 macro ns.stacks.on 86 48 task ns.stacks.load … … 91 53 end 92 54 task ns.stacks.confirm 93 active true55 active false 94 56 end 95 57 end … … 122 84 end 123 85 124 # macro ns.sweetspot.off125 # task ns.sweetspot.load126 # active false127 # end128 # end129 130 # macro ns.registration.off131 # task ns.registration.load132 # active false133 # end134 # end135 136 # macro ns.burntool.off137 # task ns.burntool.load138 # active false139 # end140 # task ns.burntool.run141 # active false142 # end143 # end144 145 # macro ns.chips.off146 # task ns.chips.load147 # active false148 # end149 # task ns.chips.run150 # active false151 # end152 # end153 154 86 macro ns.stacks.off 155 87 task ns.stacks.load … … 174 106 end 175 107 176 # $ns_regPAGE = 0 177 # $ns_burnPAGE = 0 178 # $ns_RburnPAGE = 0 179 # $ns_RburnCELL = 0 180 # $ns_chipPAGE = 0 181 # $ns_RchipPAGE = 0 108 macro ns.stacks.confirm.on 109 task ns.stacks.confirm 110 active true 111 end 112 end 113 114 macro ns.stacks.confirm.off 115 task ns.stacks.confirm 116 active false 117 end 118 end 119 120 182 121 $ns_stackPAGE = 0 183 122 $ns_RstackPAGE = 0 … … 187 126 188 127 book init nsData 128 book init nsDiffs 129 book init nsStacks 189 130 # 190 131 # Macros to control the book. 191 132 # 192 133 macro ns.add.date 134 if ($0 != 2) 135 echo "USAGE: ns.add.date (YYYY-MM-DD)" 136 break 137 end 138 193 139 book newpage nsData $1 194 140 book setword nsData $1 nsState NEW 195 book setword nsData $1 nsStackState TOWARP 196 book setword nsData $1 nsDiffState TOWARP 141 book setword nsData $1 dbname $DB:0 142 143 book newpage nsDiffs $1 144 book setword nsDiffs $1 nsDiffState TOWARP 145 book setword nsDiffs $1 nsObservingState UNKNOWN 146 147 book newpage nsStacks $1 148 book setword nsStacks $1 nsStackState TOWARP 149 197 150 end 198 151 … … 202 155 book getpage nsData $i -var date 203 156 book getword nsData $date nsState -var state 204 book getword ns Data$date nsStackState -var Sstate205 book getword nsD ata$date nsDiffState -var Dstate206 book getword nsD ata$date nsObservingState -var Ostate157 book getword nsStacks $date nsStackState -var Sstate 158 book getword nsDiffs $date nsDiffState -var Dstate 159 book getword nsDiffs $date nsObservingState -var Ostate 207 160 echo $date $state $Sstate $Dstate $Ostate 208 161 end … … 216 169 book setword nsData $1 nsState $2 217 170 end 218 219 171 220 172 … … 236 188 book newpage nsData $today 237 189 book setword nsData $today nsState NEW 238 book setword nsData $today nsStackState TOWARP 239 book setword nsData $today nsDiffState TOWARP 190 book newpage nsStacks $today 191 book setword nsStacks $today nsStackState TOWARP 192 book newpage nsDiffs $today 193 book setword nsDiffs $today nsDiffState TOWARP 240 194 book setword nsData $today dbname $DB:0 241 195 242 196 # command echo $today 243 197 $run = nightly_science.pl --clean_old --date $today --dbname $DB:0 244 add_standard_args $run198 # add_standard_args run 245 199 command $run 246 200 end … … 279 233 280 234 $run = nightly_science.pl --queue_detrends --date $today --dbname $DB:0 281 add_standard_args $run235 # add_standard_args $run 282 236 command $run 283 237 end … … 317 271 318 272 $run = nightly_science.pl --queue_dqstats --date $today --dbname $DB:0 319 add_standard_args $run273 # add_standard_args $run 320 274 command $run 321 275 … … 342 296 # 343 297 task ns.stacks.load 298 active false 344 299 host local 345 300 periods -poll $LOADPOLL … … 353 308 354 309 book getpage nsData $ns_stackPAGE -var date 355 book getword nsData $date nsStackState -var ns_STATE 356 book getword nsData $date dbname -var $DBNAME 310 book getword nsStacks $date nsStackState -var ns_STATE 311 book getword nsDiffs $date nsDiffState -var ns_diff_STATE 312 book getword nsData $date dbname -var DBNAME 357 313 book npages nsData -var Npages 358 314 … … 367 323 if ("$ns_STATE" != "TOWARP") break 368 324 369 $run = nightly_science.pl --check_stacks --date $date 370 add_standard_args $run325 $run = nightly_science.pl --check_stacks --date $date --dbname $DBNAME 326 # add_standard_args $run 371 327 command $run 372 328 … … 376 332 task.exit 0 377 333 # convert 'stdout' to book format 378 book delpage ns Data$options:0379 ipptool2book stdout ns Data-uniq -key date380 381 book getword ns Data$options:0 nsNmacros -var ns_Nmacros334 book delpage nsStacks $options:0 335 ipptool2book stdout nsStacks -uniq -key date 336 337 book getword nsStacks $options:0 nsNmacros -var ns_Nmacros 382 338 if ("$ns_Nmacros" != "NULL") 383 339 for i 0 $ns_Nmacros 384 340 sprintf macroName "ns%dMacro" $i 385 book getword ns Data$options:0 $macroName -var macroCmd341 book getword nsStacks $options:0 $macroName -var macroCmd 386 342 $macroCmd 387 343 end … … 422 378 423 379 book getpage nsData $ns_RstackPAGE -var date 424 book getword nsData $date nsStackState -var ns_STATE 425 book getword nsData $date dbname -var $DBNAME 380 book getword nsStacks $date nsStackState -var ns_STATE 381 book getword nsDiffs $date nsDiffState -var ns_diff_STATE 382 book getword nsData $date dbname -var DBNAME 426 383 book npages nsData -var Npages 427 384 … … 434 391 option $date 435 392 436 if (("$ns_STATE" != " QUEUESTACKS")&&("$ns_STATE" != "TOWARP")&&("$ns_STATE" != "FORCETOWARP")) break437 $run = nightly_science.pl --queue_stacks --date $date 438 add_standard_args $run393 if (("$ns_STATE" != "STACKING")&&("$ns_STATE" != "TOWARP")&&("$ns_STATE" != "FORCETOWARP")) break 394 $run = nightly_science.pl --queue_stacks --date $date --dbname $DBNAME 395 # add_standard_args $run 439 396 command $run 440 397 end … … 442 399 task.exit 0 443 400 # convert 'stdout' to book format 444 book delpage ns Data$options:0401 book delpage nsStacks $options:0 445 402 # We've queued up stacking. We're done with this date, so don't reload the page. 446 ipptool2book stdout ns Data-uniq -key date447 448 book getword ns Data$options:0 nsNmacros -var ns_Nmacros403 ipptool2book stdout nsStacks -uniq -key date 404 405 book getword nsStacks $options:0 nsNmacros -var ns_Nmacros 449 406 if ("$ns_Nmacros" != "NULL") 450 407 for i 0 $ns_Nmacros 451 408 sprintf macroName "ns%dMacro" $i 452 book getword ns Data$options:0 $macroName -var macroCmd409 book getword nsStacks $options:0 $macroName -var macroCmd 453 410 $macroCmd 454 411 end … … 477 434 # 478 435 task ns.stacks.confirm 436 active false 479 437 host local 480 438 periods -poll $LOADPOLL … … 488 446 489 447 book getpage nsData $ns_CstackPAGE -var date 490 book getword ns Data$date nsStackState -var ns_STATE491 book getword nsData $date dbname -var $DBNAME448 book getword nsStacks $date nsStackState -var ns_STATE 449 book getword nsData $date dbname -var DBNAME 492 450 book npages nsData -var Npages 493 451 … … 501 459 502 460 if ("$ns_STATE" != "STACKING") break 503 $run = nightly_science.pl --confirm_stacks --date $date 504 add_standard_args $run461 $run = nightly_science.pl --confirm_stacks --date $date --dbname $DBNAME 462 # add_standard_args $run 505 463 command $run 506 464 end … … 508 466 task.exit 0 509 467 # convert 'stdout' to book format 510 book delpage ns Data$options:0511 ipptool2book stdout ns Data-uniq -key date512 513 book getword ns Data$options:0 nsNmacros -var ns_Nmacros468 book delpage nsStacks $options:0 469 ipptool2book stdout nsStacks -uniq -key date 470 471 book getword nsStacks $options:0 nsNmacros -var ns_Nmacros 514 472 if ("$ns_Nmacros" != "NULL") 515 473 for i 0 $ns_Nmacros 516 474 sprintf macroName "ns%dMacro" $i 517 book getword ns Data$options:0 $macroName -var macroCmd475 book getword nsStacks $options:0 $macroName -var macroCmd 518 476 $macroCmd 519 477 end … … 543 501 # 544 502 task ns.diffs.load 503 active false 545 504 host local 546 505 periods -poll $LOADPOLL … … 554 513 555 514 book getpage nsData $ns_diffPAGE -var date 556 book getword nsData $date nsDiffState -var ns_STATE 557 book getword nsData $date dbname -var $DBNAME 515 book getword nsDiffs $date nsDiffState -var ns_STATE 516 book getword nsStacks $date nsStackState -var ns_stack_STATE 517 book getword nsData $date dbname -var DBNAME 558 518 book npages nsData -var Npages 559 519 … … 567 527 568 528 if ("$ns_STATE" != "TOWARP") break 569 $run = nightly_science.pl --check_diffs --date $date 570 add_standard_args $run529 $run = nightly_science.pl --check_diffs --date $date --dbname $DBNAME 530 # add_standard_args $run 571 531 command $run 572 532 end … … 575 535 task.exit 0 576 536 # convert 'stdout' to book format 577 book delpage nsD ata$options:0578 ipptool2book stdout nsD ata-uniq -key date579 580 book getword nsD ata$options:0 nsNmacros -var ns_Nmacros537 book delpage nsDiffs $options:0 538 ipptool2book stdout nsDiffs -uniq -key date 539 540 book getword nsDiffs $options:0 nsNmacros -var ns_Nmacros 581 541 if ("$ns_Nmacros" != "NULL") 582 542 for i 0 $ns_Nmacros 583 543 sprintf macroName "ns%dMacro" $i 584 book getword nsD ata$options:0 $macroName -var macroCmd544 book getword nsDiffs $options:0 $macroName -var macroCmd 585 545 $macroCmd 586 546 end … … 613 573 periods -poll $LOADPOLL 614 574 periods -exec $LOADEXEC 615 periods -timeout 120575 periods -timeout 900 616 576 npending 1 617 577 … … 621 581 622 582 book getpage nsData $ns_RdiffPAGE -var date 623 book getword nsData $date nsDiffState -var ns_STATE 624 book getword nsData $date dbname -var $DBNAME 583 book getword nsDiffs $date nsDiffState -var ns_STATE 584 book getword nsStacks $date nsStackState -var ns_stack_STATE 585 book getword nsData $date dbname -var DBNAME 625 586 book npages nsData -var Npages 626 587 … … 633 594 option $date 634 595 635 if (("$ns_STATE" != " QUEUEDIFFS")&&("$ns_STATE" != "TOWARP")&&("$ns_STATE" != "FORCETOWARP")) break636 $run = nightly_science.pl --queue_diffs --date $date 637 add_standard_args $run596 if (("$ns_STATE" != "DIFFING")&&("$ns_STATE" != "QUEUEDIFFS")&&("$ns_STATE" != "TOWARP")&&("$ns_STATE" != "FORCETOWARP")) break 597 $run = nightly_science.pl --queue_diffs --date $date --dbname $DBNAME 598 # add_standard_args $run 638 599 command $run 639 600 end … … 641 602 task.exit 0 642 603 # convert 'stdout' to book format 643 book delpage nsD ata$options:0604 book delpage nsDiffs $options:0 644 605 # We've queued up diffing. We're done with this date, so don't reload the page. 645 ipptool2book stdout nsD ata-uniq -key date646 647 book getword nsD ata$options:0 nsNmacros -var ns_Nmacros606 ipptool2book stdout nsDiffs -uniq -key date 607 608 book getword nsDiffs $options:0 nsNmacros -var ns_Nmacros 648 609 if ("$ns_Nmacros" != "NULL") 649 610 for i 0 $ns_Nmacros 650 611 sprintf macroName "ns%dMacro" $i 651 book getword nsD ata$options:0 $macroName -var macroCmd612 book getword nsDiffs $options:0 $macroName -var macroCmd 652 613 $macroCmd 653 614 end -
branches/eam_branches/ipp-20101205/ippTasks/pstamp.pro
r29719 r30446 258 258 book getword pstampRequest $pageName ds_outProduct -var PRODUCT 259 259 book getword pstampRequest $pageName outdir -var OUTDIR 260 book getword pstampRequest $pageName need_magic -var NEED_MAGIC 260 261 book getword pstampRequest $pageName label -var LABEL 261 262 … … 263 264 264 265 $run = pstamp_parser_run.pl --req_id $REQ_ID --uri $URI --product $PRODUCT --outdir $OUTDIR --label $LABEL --redirect-output 266 267 if ($NEED_MAGIC != 0) 268 $run = $run --need_magic 269 end 265 270 266 271 add_standard_args run -
branches/eam_branches/ipp-20101205/ippTasks/publish.pro
r30102 r30446 79 79 end 80 80 add_poll_args run 81 add_poll_labels run 81 82 command $run 82 83 end … … 131 132 book getword publishRun $pageName dbname -var DBNAME 132 133 book getword publishRun $pageName output_format -var OUTPUT_FORMAT 134 book getword publishRun $pageName need_magic -var NEED_MAGIC 133 135 134 136 stdout $LOGDIR/publish.run.log … … 139 141 140 142 $run = publish_file.pl --pub_id $PUB_ID --camera $CAMERA --workdir $WORKDIR --product $PRODUCT --stage $STAGE --stage_id $STAGE_ID --output_format $OUTPUT_FORMAT --redirect-output 143 144 if ("$NEED_MAGIC" == "T") 145 $run = $run --need-magic 146 end 147 141 148 add_standard_args run 142 149 -
branches/eam_branches/ipp-20101205/ippTasks/register.pro
r30102 r30446 9 9 book init regPendingExp 10 10 book init regPendingBurntoolImfile 11 book init regDates 11 12 12 13 macro register.reset … … 14 15 book init regPendingExp 15 16 book init regPendingBurntoolImfile 17 book init regDates 16 18 end 17 19 … … 21 23 book listbook regPendingExp 22 24 book listbook regPendingBurntoolImfile 25 book listbook regDates 23 26 end 24 27 … … 30 33 active true 31 34 end 35 task register.imfile.revert 36 active false 37 end 32 38 task register.exp.load 33 39 active true … … 51 57 active false 52 58 end 59 task register.imfile.revert 60 active false 61 end 53 62 task register.exp.load 54 63 active false … … 65 74 end 66 75 76 macro register.revert.on 77 task register.imfile.revert 78 active true 79 end 80 end 81 82 macro register.revert.off 83 task register.imfile.revert 84 active false 85 end 86 end 87 88 macro burntool.on 89 task register.burntool.load 90 active true 91 end 92 task register.burntool.run 93 active true 94 end 95 end 96 97 macro burntool.off 98 task register.burntool.load 99 active false 100 end 101 task register.burntool.run 102 active false 103 end 104 end 105 106 macro register.add.date 107 if ($0 != 2) 108 echo "USAGE: register.add.date (YYYY-MM-DD)" 109 break 110 end 111 112 book newpage regDates $1 113 book setword regDates $1 nsState NEW 114 book setword regDates $1 dbname $DB:0 115 end 116 117 67 118 $valid_burntool_value = 14 119 $sunrise = 17:30:00 120 $sunset = 03:30:00 68 121 69 122 macro replace.survey.values … … 147 200 $regPendingImfile_DB = 0 148 201 $regPendingBurntoolImfile_DB = 0 202 $regRevertImfile_DB = 0 149 203 $regPendingExp_DB = 0 150 204 … … 265 319 # XXX register_imfile.pl differs from the standard script : it does not have an 'outroot' argument, and it does not take '--redirect' 266 320 $run = register_imfile.pl --exp_id $EXP_ID --tmp_class_id $TMP_CLASS_ID --tmp_exp_name $TMP_EXP_NAME --uri $URI --logfile $logfile --bytes $BYTES --md5sum $MD5SUM 321 $run = $run --sunset $sunset --sunrise $sunrise 267 322 add_standard_args run 268 323 … … 295 350 end 296 351 end 352 353 task register.imfile.revert 354 host local 355 periods -poll 60.0 356 periods -exec 1800.0 357 periods -timeout 120.0 358 npending 1 359 360 stdout NULL 361 stderr $LOGDIR/register.imfile.revert.log 362 363 task.exec 364 $run = regtool -revertprocessedimfile 365 if ($DB:n == 0) 366 option DEFAULT 367 else 368 option $DB:$regRevertImfile_DB 369 $run = $run -dbname $DB:$regRevertImfile_DB 370 $regRevertImfile_DB ++ 371 if ($regRevertImfile_DB >= $DB:n) set regRevertImfile_DB = 0 372 end 373 add_poll_args run 374 command $run 375 end 376 377 # success 378 task.exit 0 379 end 380 381 # locked list 382 task.exit default 383 showcommand failure 384 end 385 386 task.exit crash 387 showcommand crash 388 end 389 390 # operation times out 391 task.exit timeout 392 showcommand timeout 393 end 394 end 395 297 396 298 397 # select exposures ready for register_exp.pl … … 463 562 # select entried from the current DB; cycle to the next DB, if it exists 464 563 task.exec 564 book npages regDates -var Npages 565 if ($Npages == 0) 566 $today = `date -u +%Y-%m-%d` 567 else 568 book getpage regDates $reg_datePAGE -var today 569 $reg_datePAGE ++ 570 if ($reg_datePAGE >= $Npages) set reg_datePAGE = 0 571 end 572 465 573 $run = regtool -pendingburntoolimfile 466 $today = `date -u +%Y-%m-%d` 574 467 575 # debugging purposes 468 # $today = "2010-12-06" 469 $run = $run -date $today -valid_burntool $valid_burntool_value 576 # $today = "2010-12-25" 577 $dateobs_begin = $today\T$sunset 578 $dateobs_end = $today\T$sunrise 579 $run = $run -dateobs_begin $dateobs_begin -dateobs_end $dateobs_end -valid_burntool $valid_burntool_value 470 580 if ($DB:n == 0) 471 581 option DEFAULT … … 574 684 end 575 685 576 686 task register.initday.load 687 host local 688 periods -poll $LOADPOLL 689 periods -exec $LOADEXEC 690 periods -timeout 30 691 trange 0:00:00 1:00:00 -nmax 1 692 npending 1 693 694 task.exec 695 $today = `date -u +%Y-%m-%d` 696 book newpage regDates $today 697 book setword regDates $today nsState NEW 698 book setword regDates $today dbname $DB:0 699 700 command true 701 end 702 703 task.exit 0 704 # nothing to do here? 705 end 706 # locked list 707 task.exit default 708 showcommand failure 709 end 710 task.exit crash 711 showcommand crash 712 end 713 #operation times out? 714 task.exit timeout 715 showcommand timeout 716 end 717 end 718 577 719 578 720 -
branches/eam_branches/ipp-20101205/ippTasks/survey.pro
r29768 r30446 259 259 # user functions to manipulate destreak labels 260 260 macro survey.add.destreak 261 if ($0 != 3)262 echo "USAGE: survey.add.destreak (label) (workdir base) "261 if ($0 != 4) 262 echo "USAGE: survey.add.destreak (label) (workdir base) (recovery root)" 263 263 break 264 264 end 265 265 book newpage SURVEY_DESTREAK $1 266 266 book setword SURVEY_DESTREAK $1 WORKDIR $2 267 book setword SURVEY_DESTREAK $1 RECOVERYROOT $3 267 268 book setword SURVEY_DESTREAK $1 STATE PENDING 268 269 end … … 366 367 # user functions to manipulate publish labels 367 368 macro survey.add.publish 368 if ($0 != 3)369 echo "USAGE: survey.add.publish ( label) (client_id)"369 if ($0 != 5) 370 echo "USAGE: survey.add.publish (tag) (label) (client_id) (comment)" 370 371 break 371 372 end 372 373 book newpage SURVEY_PUBLISH $1 373 book setword SURVEY_PUBLISH $1 CLIENT_ID $2 374 book setword SURVEY_PUBLISH $1 LABEL $2 375 book setword SURVEY_PUBLISH $1 CLIENT_ID $3 376 book setword SURVEY_PUBLISH $1 COMMENT $4 374 377 book setword SURVEY_PUBLISH $1 STATE PENDING 375 378 end … … 821 824 book setword SURVEY_DESTREAK $label STATE DONE 822 825 book getword SURVEY_DESTREAK $label WORKDIR -var workdir 826 book getword SURVEY_DESTREAK $label RECOVERYROOT -var recoveryroot 823 827 824 828 $run = magic_destreak_defineruns.pl --label $label --workdir $workdir/$label 829 if ("$recoveryroot" != "NULL") 830 $run = $run --recoveryroot $recoveryroot/$label 831 end 825 832 826 833 if ($DB:n == 0) … … 1084 1091 endif 1085 1092 1086 book getpage SURVEY_PUBLISH 0 -var label -key STATE NEW 1087 if ("$label" == "NULL") 1088 # All labels have been done --- reset 1089 # echo "Resetting labels" 1093 # survey.publish allows multiple entries per label. 1094 # The key is called tag and must be unique 1095 book getpage SURVEY_PUBLISH 0 -var tag -key STATE NEW 1096 if ("$tag" == "NULL") 1097 # All tags have been done --- reset 1098 # echo "Resetting tags" 1090 1099 for i 0 $N 1091 book getpage SURVEY_PUBLISH $i -var label1092 book setword SURVEY_PUBLISH $ labelSTATE NEW1100 book getpage SURVEY_PUBLISH $i -var tag 1101 book setword SURVEY_PUBLISH $tag STATE NEW 1093 1102 end 1094 book getpage SURVEY_PUBLISH 0 -var label-key STATE NEW1103 book getpage SURVEY_PUBLISH 0 -var tag -key STATE NEW 1095 1104 1096 1105 # Select different database … … 1099 1108 end 1100 1109 1101 book setword SURVEY_PUBLISH $label STATE DONE 1102 book getword SURVEY_PUBLISH $label CLIENT_ID -var client_id 1110 book setword SURVEY_PUBLISH $tag STATE DONE 1111 book getword SURVEY_PUBLISH $tag LABEL -var label 1112 book getword SURVEY_PUBLISH $tag CLIENT_ID -var client_id 1113 book getword SURVEY_PUBLISH $tag COMMENT -var comment 1103 1114 1104 1115 $run = pubtool -definerun -label $label -client_id $client_id 1116 1117 if ("$comment" != "NULL") 1118 $run = $run -comment $comment 1119 end 1105 1120 1106 1121 if ($DB:n == 0) … … 1111 1126 end 1112 1127 1113 #echo $run 1128 echo $run 1129 1114 1130 command $run 1131 1115 1132 end 1116 1133
Note:
See TracChangeset
for help on using the changeset viewer.
