in src/worker/exporters/custom_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']:
logging.info('Received exit signal, shutting down ...')
break
except KeyboardInterrupt:
pass