set read_mode=majority when claiming a site to brozzle, to avoid weird thing where brozzler keeps claiming site it's already working on (not sure this is the cause of the problem but i don't see why else it might happen)

This commit is contained in:
Noah Levitt 2016-04-21 20:32:28 +00:00
parent 1e52d1cf98
commit dd8f0d525d

View File

@ -91,7 +91,7 @@ class RethinkDbFrontier:
def claim_site(self, worker_id):
# XXX keep track of aggregate priority and prioritize sites accordingly?
while True:
result = (self.r.table("sites")
result = (self.r.table("sites", read_mode="majority")
.between(
["ACTIVE",rethinkdb.minval],
["ACTIVE",rethinkdb.maxval],