Doubling resync likelihood.

This commit is contained in:
Samuel Clay 2012-12-17 18:20:26 -08:00
parent 53b5c4e2db
commit 1cc128b5a2
2 changed files with 2 additions and 2 deletions

View file

@ -701,7 +701,7 @@ class MUserStory(mongo.Document):
print " ---> Syncing %s stories (%s)" % (total, user_id or feed_id)
for i, read_story in enumerate(read_stories):
if (i+1) % 1000 == 0:
print " ---> %s/%s" % (i, total)
print " ---> %s/%s" % (i+1, total)
read_story.sync_redis(r)
class UserSubscriptionFolders(models.Model):

View file

@ -343,7 +343,7 @@ class Dispatcher:
feed.known_good = True
feed.fetched_once = True
feed = feed.save()
if random.random() <= 0.01:
if random.random() <= 0.02:
feed.sync_redis()
MUserStory.delete_old_stories(feed_id=feed.pk)
MUserStory.sync_all_redis(feed_id=feed.pk)