Changeset 140786 in webkit


Ignore:
Timestamp:
Jan 24, 2013 11:00:11 PM (11 years ago)
Author:
abarth@webkit.org
Message:

HTTP 500 error between QueueStatusServer and bot(s)
https://bugs.webkit.org/show_bug.cgi?id=107184

Patch by Alan Cutter <alancutter@chromium.org> on 2013-01-24
Reviewed by Adam Barth.

Removed the use of memcache which was the source of the exception.

  • QueueStatusServer/handlers/updatestatus.py:

(UpdateStatus.post):

  • QueueStatusServer/model/attachment.py:

(Attachment):
(Attachment.summary):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r140783 r140786  
     12013-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
    1162013-01-24  Sheriff Bot  <webkit.review.bot@gmail.com>
    217
  • trunk/Tools/QueueStatusServer/handlers/updatestatus.py

    r140513 r140786  
    6868        if queue_status.active_patch_id:
    6969            RecordPatchEvent.updated(queue_status.active_patch_id, queue_status.queue_name, queue_status.bot_id)
    70         Attachment.dirty(queue_status.active_patch_id)
    7170        self.response.out.write(queue_status.key().id())
  • trunk/Tools/QueueStatusServer/model/attachment.py

    r70025 r140786  
    2929import re
    3030
    31 from google.appengine.api import memcache
    32 
    3331from model.queues import Queue
    3432from model.queuestatus import QueueStatus
     
    3735
    3836class Attachment(object):
    39     @classmethod
    40     def dirty(cls, attachment_id):
    41         memcache.delete(str(attachment_id), namespace="attachment-summary")
    42 
    4337    @classmethod
    4438    def recent(cls, limit=1):
     
    6761        if self._summary:
    6862            return self._summary
    69         self._summary = memcache.get(str(self.id), namespace="attachment-summary")
    70         if self._summary:
    71             return self._summary
    7263        self._summary = self._fetch_summary()
    73         memcache.set(str(self.id), self._summary, namespace="attachment-summary")
    7464        return self._summary
    7565
Note: See TracChangeset for help on using the changeset viewer.