- Timestamp:
- Sep 19, 2014, 4:05:27 PM (12 years ago)
- Location:
- branches/eam_branches/ps2-tc3-20130727
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippTasks/survey.pro (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ps2-tc3-20130727
- Property svn:mergeinfo changed
-
branches/eam_branches/ps2-tc3-20130727/ippTasks/survey.pro
r36680 r37403 668 668 end 669 669 670 # echo $run671 670 command $run 672 671 end … … 698 697 periods -exec $SURVEY_EXEC 699 698 periods -timeout $SURVEY_TIMEOUT 699 ## time in UT -- want to start ~0900 HST and run until next night starts. 24h boundary so two trange needed? 700 trange 19:00:00 23:59:00 701 trange 00:00:00 05:00:00 700 702 npending 1 701 703 … … 752 754 end 753 755 754 # echo $run755 756 command $run 756 757 end … … 838 839 end 839 840 840 # echo $run841 841 command $run 842 842 end … … 1437 1437 host local 1438 1438 1439 periods -poll $SURVEY_POLL 1440 periods -exec $SURVEY_EXEC 1439 # we are going to use a long timeout (900 sec) between passes of the list 1440 # and a short timeout (10 sec) while we are doing the full list 1441 periods -exec 10 1442 periods -poll 2 1441 1443 periods -timeout $SURVEY_TIMEOUT 1442 1444 npending 1 … … 1449 1451 book npages SURVEY_PUBLISH -var N 1450 1452 if ($N == 0) 1451 #echo "No labels for processing"1453 # echo "No labels for processing" 1452 1454 break 1453 1455 endif 1456 1457 # short timeout while we have something to do 1458 periods -exec 10 1454 1459 1455 1460 # survey.publish allows multiple entries per label. … … 1465 1470 book getpage SURVEY_PUBLISH 0 -var tag -key STATE NEW 1466 1471 1467 # Select different database 1468 $SURVEY_PUBLISH ++ 1469 if ($SURVEY_PUBLISH >= $DB:n) set SURVEY_PUBLISH = 0 1472 # Select different database, set a long timeout 1473 $SURVEY_PUBLISH_DB ++ 1474 if ($SURVEY_PUBLISH_DB >= $DB:n) set SURVEY_PUBLISH_DB = 0 1475 periods -exec 900 1476 date -var mytime 1477 echo "done with publish list @ $mytime" 1470 1478 end 1471 1479 … … 1484 1492 option DEFAULT 1485 1493 else 1486 $run = $run -dbname $DB:$SURVEY_PUBLISH 1487 option $DB:$SURVEY_PUBLISH 1494 $run = $run -dbname $DB:$SURVEY_PUBLISH_DB 1495 option $DB:$SURVEY_PUBLISH_DB 1488 1496 end 1489 1497 1490 1498 # echo $run 1491 1492 1499 command $run 1493 1500 … … 1859 1866 end 1860 1867 1861 echo $run1862 1868 command $run 1863 1869 end
Note:
See TracChangeset
for help on using the changeset viewer.
