def computeNone(self): if self.generate_new_graph: self.generate_new_graph = False today = datetime.date.today() year = today.year month = today.month self.redis_logger.debug('Building protocol graph') lib_words.create_curve_with_word_file(self.r_serv_trend, self.csv_path_proto, self.protocolsfile_path, year, month) self.redis_logger.debug('Building tld graph') lib_words.create_curve_with_word_file(self.r_serv_trend, self.csv_path_tld, self.tldsfile_path, year, month) self.redis_logger.debug('Building domain graph') lib_words.create_curve_from_redis_set(self.r_serv_trend, self.csv_path_domain, "domain", year, month) self.redis_logger.debug('end building')
print 'Building protocol graph' lib_words.create_curve_with_word_file(r_serv_trend, csv_path_proto, protocolsfile_path, year, month) print 'Building tld graph' lib_words.create_curve_with_word_file(r_serv_trend, csv_path_tld, tldsfile_path, year, month) print 'Building domain graph' lib_words.create_curve_from_redis_set(r_serv_trend, csv_path_domain, "domain", year, month) print 'end building' publisher.debug( "{} queue is empty, waiting".format(config_section)) print 'sleeping' time.sleep(5 * 60) continue else: generate_new_graph = True # Do something with the message from the queue url, date, path = message.split() faup.decode(url) url_parsed = faup.get()
year = today.year month = today.month print('Building protocol graph') lib_words.create_curve_with_word_file(r_serv_trend, csv_path_proto, protocolsfile_path, year, month) print('Building tld graph') lib_words.create_curve_with_word_file(r_serv_trend, csv_path_tld, tldsfile_path, year, month) print('Building domain graph') lib_words.create_curve_from_redis_set(r_serv_trend, csv_path_domain, "domain", year, month) print('end building') publisher.debug("{} queue is empty, waiting".format(config_section)) print('sleeping') time.sleep(5*60) continue else: generate_new_graph = True # Do something with the message from the queue url, date, path = message.split() faup.decode(url) url_parsed = faup.get()