Skip to content

Commit

Permalink
Handle case of no pending updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Jan 19, 2014
1 parent 5f85800 commit 28daeba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sentry/buffer/redis.py
Expand Up @@ -89,6 +89,8 @@ def incr(self, model, columns, filters, extra=None):
def process_pending(self):
for conn in self.conn.hosts.itervalues():
keys = conn.zrange(self.pending_key, 0, -1)
if not keys:
continue
for key in keys:
process_incr.apply_async(kwargs={
'key': key,
Expand Down

0 comments on commit 28daeba

Please sign in to comment.