Skip to content

Commit

Permalink
Merge pull request #70 from zanqi/appid
Browse files Browse the repository at this point in the history
Fix appid retry logic that will skip a appid when gae is over quota
  • Loading branch information
Phus Lu committed Dec 8, 2014
2 parents 9f6c6da + 1076013 commit 4765ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def handle(self, handler, **kwargs):
if len(self.appids) > 1:
self.appids.append(self.appids.pop(0))
logging.info('gae over qouta, switch next appid=%r', self.appids[0])
if i < self.max_retry - 1 and len(self.appids) > 1:
elif i < self.max_retry - 1 and len(self.appids) > 1:
self.appids.append(self.appids.pop(0))
logging.info('URLFETCH return %d, trying next appid=%r', response.app_status, self.appids[0])
response.close()
Expand Down

0 comments on commit 4765ad4

Please sign in to comment.