Moved learning about new consumers to every cycle
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d3656b543f
commit
ad44b4f134
2
app.py
2
app.py
@ -43,9 +43,9 @@ if __name__ == "__main__":
|
||||
messagesender = MessageSender(communicator=communicator, uuid=generateduuid)
|
||||
consumerlocator = ConsumerLocator(uuid=generateduuid, communicator=communicator,
|
||||
redisconnector=RedisConnector())
|
||||
consumerlocator.learnconsumerlist()
|
||||
|
||||
while True:
|
||||
consumerlocator.learnconsumerlist()
|
||||
LOGGER.info(f"Updating consumer list of {generateduuid}")
|
||||
consumerlocator.updateconsumer()
|
||||
LOGGER.info("Sending message to consumer")
|
||||
|
Reference in New Issue
Block a user