def post(self):
    """Handles a new error report via POST."""
    task = Queue.get(self.request.get('key'))
    if not task:
      return

    exception = json.loads(task.payload)
    _putInstance(exception)
    task.delete()
Esempio n. 2
0
    def post(self):
        """Handles a new error report via POST."""
        task = Queue.get(self.request.get("key"))
        if not task:
            return

        exception = json.loads(task.payload)
        _putInstance(exception)
        task.delete()
def queueException(serializedException):
  """Enqueues the given exception."""
  task = Queue(payload = serializedException)
  task.put()
  taskqueue.add(queue_name='instances', url='/reportWorker', params={'key': task.key()})
Esempio n. 4
0
def queueException(serializedException):
    """Enqueues the given exception."""
    task = Queue(payload=serializedException)
    task.put()
    taskqueue.add(queue_name="instances", url="/reportWorker", params={"key": task.key()})