Changeset 140786 in webkit
- Timestamp:
- Jan 24, 2013 11:00:11 PM (11 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r140783 r140786 1 2013-01-24 Alan Cutter <alancutter@chromium.org> 2 3 HTTP 500 error between QueueStatusServer and bot(s) 4 https://bugs.webkit.org/show_bug.cgi?id=107184 5 6 Reviewed by Adam Barth. 7 8 Removed the use of memcache which was the source of the exception. 9 10 * QueueStatusServer/handlers/updatestatus.py: 11 (UpdateStatus.post): 12 * QueueStatusServer/model/attachment.py: 13 (Attachment): 14 (Attachment.summary): 15 1 16 2013-01-24 Sheriff Bot <webkit.review.bot@gmail.com> 2 17 -
trunk/Tools/QueueStatusServer/handlers/updatestatus.py
r140513 r140786 68 68 if queue_status.active_patch_id: 69 69 RecordPatchEvent.updated(queue_status.active_patch_id, queue_status.queue_name, queue_status.bot_id) 70 Attachment.dirty(queue_status.active_patch_id)71 70 self.response.out.write(queue_status.key().id()) -
trunk/Tools/QueueStatusServer/model/attachment.py
r70025 r140786 29 29 import re 30 30 31 from google.appengine.api import memcache32 33 31 from model.queues import Queue 34 32 from model.queuestatus import QueueStatus … … 37 35 38 36 class Attachment(object): 39 @classmethod40 def dirty(cls, attachment_id):41 memcache.delete(str(attachment_id), namespace="attachment-summary")42 43 37 @classmethod 44 38 def recent(cls, limit=1): … … 67 61 if self._summary: 68 62 return self._summary 69 self._summary = memcache.get(str(self.id), namespace="attachment-summary")70 if self._summary:71 return self._summary72 63 self._summary = self._fetch_summary() 73 memcache.set(str(self.id), self._summary, namespace="attachment-summary")74 64 return self._summary 75 65
Note: See TracChangeset
for help on using the changeset viewer.