Ejemplo n.º 1
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()
Ejemplo 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()
Ejemplo n.º 3
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()})
Ejemplo 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()})