mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-20 23:56:34 -04:00
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:
parent
1e52d1cf98
commit
dd8f0d525d
@ -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],
|
||||
|
Loading…
x
Reference in New Issue
Block a user