Changeset 37076 for trunk/ippTasks/survey.pro
- Timestamp:
- Jul 17, 2014, 2:17:50 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/survey.pro (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/survey.pro
r35884 r37076 668 668 end 669 669 670 # echo $run671 670 command $run 672 671 end … … 752 751 end 753 752 754 # echo $run755 753 command $run 756 754 end … … 838 836 end 839 837 840 # echo $run841 838 command $run 842 839 end … … 1437 1434 host local 1438 1435 1439 periods -poll $SURVEY_POLL 1440 periods -exec $SURVEY_EXEC 1436 # we are going to use a long timeout (900 sec) between passes of the list 1437 # and a short timeout (10 sec) while we are doing the full list 1438 periods -exec 10 1439 periods -poll 2 1441 1440 periods -timeout $SURVEY_TIMEOUT 1442 1441 npending 1 … … 1449 1448 book npages SURVEY_PUBLISH -var N 1450 1449 if ($N == 0) 1451 #echo "No labels for processing"1450 # echo "No labels for processing" 1452 1451 break 1453 1452 endif 1453 1454 # short timeout while we have something to do 1455 periods -exec 10 1454 1456 1455 1457 # survey.publish allows multiple entries per label. … … 1465 1467 book getpage SURVEY_PUBLISH 0 -var tag -key STATE NEW 1466 1468 1467 # Select different database 1468 $SURVEY_PUBLISH ++ 1469 if ($SURVEY_PUBLISH >= $DB:n) set SURVEY_PUBLISH = 0 1469 # Select different database, set a long timeout 1470 $SURVEY_PUBLISH_DB ++ 1471 if ($SURVEY_PUBLISH_DB >= $DB:n) set SURVEY_PUBLISH_DB = 0 1472 periods -exec 900 1473 date -var mytime 1474 echo "done with publish list @ $mytime" 1470 1475 end 1471 1476 … … 1484 1489 option DEFAULT 1485 1490 else 1486 $run = $run -dbname $DB:$SURVEY_PUBLISH 1487 option $DB:$SURVEY_PUBLISH 1491 $run = $run -dbname $DB:$SURVEY_PUBLISH_DB 1492 option $DB:$SURVEY_PUBLISH_DB 1488 1493 end 1489 1494 1490 1495 # echo $run 1491 1492 1496 command $run 1493 1497 … … 1859 1863 end 1860 1864 1861 echo $run1862 1865 command $run 1863 1866 end
Note:
See TracChangeset
for help on using the changeset viewer.
