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 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()})
def queueException(serializedException): """Enqueues the given exception.""" task = Queue(payload=serializedException) task.put() taskqueue.add(queue_name="instances", url="/reportWorker", params={"key": task.key()})