Loading src/nbi/service/vntm_recommend/Constants.py +2 −2 Original line number Diff line number Diff line Loading @@ -13,5 +13,5 @@ # limitations under the License. SIO_NAMESPACE = '/vnt-recomm' SIO_ROOM = 'vnt-recomm' SIO_NAMESPACE = '/recommendations' SIO_ROOM = 'recommendations' src/nbi/service/vntm_recommend/VntRecommThread.py +1 −1 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ class VntRecommThread(threading.Thread): while not self._terminate.is_set(): topic_records : Dict[TopicPartition, List[ConsumerRecord]] = \ kafka_consumer.poll(timeout_ms=1000, max_records=1) if len(topic_records) == 0: return # no pending records if len(topic_records) == 0: continue # no pending records self.process_topic_records(topic_records) LOGGER.info('[run] Closing...') Loading Loading
src/nbi/service/vntm_recommend/Constants.py +2 −2 Original line number Diff line number Diff line Loading @@ -13,5 +13,5 @@ # limitations under the License. SIO_NAMESPACE = '/vnt-recomm' SIO_ROOM = 'vnt-recomm' SIO_NAMESPACE = '/recommendations' SIO_ROOM = 'recommendations'
src/nbi/service/vntm_recommend/VntRecommThread.py +1 −1 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ class VntRecommThread(threading.Thread): while not self._terminate.is_set(): topic_records : Dict[TopicPartition, List[ConsumerRecord]] = \ kafka_consumer.poll(timeout_ms=1000, max_records=1) if len(topic_records) == 0: return # no pending records if len(topic_records) == 0: continue # no pending records self.process_topic_records(topic_records) LOGGER.info('[run] Closing...') Loading