def enqueue(cls, req): """Call it to get all the needed params from the logging request. """ widx = cls.FJ_Queue.next_index() logging.info(Dimentions.get_stats(req)) Data(data=json.dumps(Dimentions.get_stats(req)), work_index=widx).put() cls.FJ_Queue.add(widx) return