Changeset 23561 for trunk/ippTasks/replicate.pro
- Timestamp:
- Mar 26, 2009, 9:46:38 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/replicate.pro (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/replicate.pro
r23345 r23561 74 74 75 75 # modify these after the tasks are tested 76 periods -poll 1077 periods -exec 1076 periods -poll 0.5 77 periods -exec 5 78 78 periods -timeout 1500 79 79 npending 1 … … 84 84 85 85 task.exec 86 book npages replicatePending -var N 87 if ($N > 2000) 88 process_cleanup replicatePending 89 break 90 end 91 86 92 # command does not need to be dynamic, but having it so allows us to adjust the periods 87 93 # so that we dont have to wait 10 minutes for things to start up 88 94 # XXX smaller limited? 7500 will be a huge book of things to do... 89 command neb-admin --host $NEB_HOST --db $NEB_DB --user $NEB_USER --pass $NEB_PASS --pendingreplicate --limit 7500 --so_id_start $SO_ID_START --so_id_range $SO_ID_RANGE 90 periods -exec 1800 91 92 end 93 94 # success 95 task.exit $EXIT_SUCCESS 95 command neb-admin --host $NEB_HOST --db $NEB_DB --user $NEB_USER --pass $NEB_PASS --pendingreplicate --limit 500 --so_id_start $SO_ID_START --so_id_range $SO_ID_RANGE 96 # periods -exec 1800 97 end 98 99 # success : 0 -- we did not hit the limit, advance so_id counter 100 task.exit 0 96 101 # advance the so_id counter 97 $SO_ID_START += $SO_ID_RANGE 98 102 $SO_ID_START = $SO_ID_START + $SO_ID_RANGE 103 104 # convert 'stdout' to book format 105 ipptool2book stdout replicatePending -key key -uniq -setword pantaskState INIT 106 107 if ($VERBOSE > 2) 108 book listbook replicatePending 109 end 110 111 # delete existing entries in the appropriate pantaskStates 112 process_cleanup replicatePending 113 end 114 115 # success : 1 -- we DID hit the limit, do NOT advance so_id counter 116 task.exit 1 99 117 # convert 'stdout' to book format 100 118 ipptool2book stdout replicatePending -key key -uniq -setword pantaskState INIT … … 131 149 # create the desired replicas 132 150 task replicate.run 133 periods -poll $RUNPOLL134 periods -exec 30151 periods -poll 0.5 152 periods -exec 5 135 153 periods -timeout 30 136 154 … … 139 157 if ($NETWORK == 0) break 140 158 if ($N == 0) 141 periods -exec 30159 periods -exec 5 142 160 break 143 161 end
Note:
See TracChangeset
for help on using the changeset viewer.
