def loop()

in src/worker/exporters/net_exporter.py [0:0]


    def loop(self):
        global job_update
        job_update = False
        try:
            while True:
                if (job_update):
                    self.jobID_update()
                self.process()
                time.sleep(config['update_freq'])
                if config['exit'] is True:
                    logging.info('Received exit signal, shutting down ...')
                    for ib_port in config['ib_port'].keys():
                        for field_name in IB_COUNTERS:
                            config['ib_port'][ib_port]['counter_file'][
                                field_name].close()
                    break
        except KeyboardInterrupt:
            pass