Samtar has uploaded a new change for review.
https://gerrit.wikimedia.org/r/263931
Change subject: Redis delay to 2 seconds
......................................................................
Redis delay to 2 seconds
Upped the delay from one seconds to two seconds to attempt to mitigate the
flood issue
Bug: T112032
Change-Id: I39709a6ff96fdd2abe28530d32e28fc58f7c6f95
---
M rqueue.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/labs/tools/wikibugs2
refs/changes/31/263931/1
diff --git a/rqueue.py b/rqueue.py
index 77fc74b..18ef8ff 100644
--- a/rqueue.py
+++ b/rqueue.py
@@ -15,7 +15,7 @@
"""Put item into the queue."""
diff = time.time() - self.last_pushed
if diff < 1:
- time.sleep(1 - diff)
+ time.sleep(2 - diff)
self.redis.rpush(self.key, json.dumps(item))
self.last_pushed = time.time()
--
To view, visit https://gerrit.wikimedia.org/r/263931
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I39709a6ff96fdd2abe28530d32e28fc58f7c6f95
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/wikibugs2
Gerrit-Branch: master
Gerrit-Owner: Samtar <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits