in src/main.py [0:0]
def service_loop(self): # pragma: no cover
'''
Put service specific application logic in the loop here. This also holds the
component process up so keep the loop with a small sleep delay even if the
component is event driven based on IPC / MQTT PubSub messaging.
'''
# If this component is completely event driven based on PubSub messages or other triggers
# just do a slow loop here to hold the process up (or do so some other way).
# Otherwise add application logic here as needed.
#
# In this example we call the publish_processor_temp method every 5 secs.
while True:
try:
self.publish_processor_temp()
# Keep a slow loop delay to hold the component process up.
time.sleep(5)
except Exception as err:
log.error('EXCEPTION: Exception occurred in service loop - ERROR MESSAGE: {}'.format(err))