aboutsummaryrefslogtreecommitdiff
path: root/bugzilla_update_user_comments.py
diff options
context:
space:
mode:
authorcpettet <rush@wikimedia.org>2014-10-21 18:07:05 -0500
committercpettet <rush@wikimedia.org>2014-10-21 18:07:05 -0500
commit4a4ae1711d8c436f563620a696c9e90e90fd3fd4 (patch)
treeab804c4ba96069953c1cc5eceab50a5abf6aaf16 /bugzilla_update_user_comments.py
parent089734d5af58c85b0874c5380e4ff74c6f11487d (diff)
tweak params for setting concurrency w/ bz
Diffstat (limited to 'bugzilla_update_user_comments.py')
-rwxr-xr-xbugzilla_update_user_comments.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bugzilla_update_user_comments.py b/bugzilla_update_user_comments.py
index a95c6cb..f0ea36c 100755
--- a/bugzilla_update_user_comments.py
+++ b/bugzilla_update_user_comments.py
@@ -135,7 +135,7 @@ def main():
if args.a:
starting_epoch = phabdb.get_user_relations_last_finish(pmig)
- users, finish_epoch = phabdb.get_verified_users(starting_epoch, config.fab_limit)
+ users, finish_epoch = phabdb.get_verified_users(starting_epoch, config.bz_updatelimit)
elif args.email:
users = phabdb.get_verified_user(args.email)
starting_epoch = 0
@@ -176,7 +176,8 @@ def main():
from multiprocessing import Pool
- pool = Pool(processes=config.fab_multi)
+
+ pool = Pool(processes=int(config.bz_updatemulti))
_ = pool.map(run_update, histories)
complete = len(filter(bool, _))
failed = len(_) - complete