X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_mon%2Fcore%2Fmessage_bus%2Fcommon_consumer.py;h=3e1f7455dda4aaa7c1a5e1286c2b462f2e2452a6;hb=cca77765cc8d43a0a5524e3754b7587b149300b4;hp=85e679f6a60cafa87bbd686d156f550d69088175;hpb=91b1018e1c84758bbc47394f50d04fe3ee81d812;p=osm%2FMON.git diff --git a/osm_mon/core/message_bus/common_consumer.py b/osm_mon/core/message_bus/common_consumer.py index 85e679f..3e1f745 100755 --- a/osm_mon/core/message_bus/common_consumer.py +++ b/osm_mon/core/message_bus/common_consumer.py @@ -22,6 +22,7 @@ import json import logging import sys +import time from json import JSONDecodeError import six @@ -106,6 +107,7 @@ class CommonConsumer: log.exception("Exception: ") return retries = retries + 1 + time.sleep(2) log.info("Listening for messages...") for message in common_consumer: