From f782d167ef8903987c7bd1cd0e9e2c320b1069b9 Mon Sep 17 00:00:00 2001 From: schdwlk Date: Wed, 13 May 2020 12:34:31 +0200 Subject: [PATCH] Updated app doc --- app.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index fd50c82..19819f8 100644 --- a/app.py +++ b/app.py @@ -1,7 +1,7 @@ #!/usr/bin/env python """ -Main entry point, This module builds the producer from the submodules. +Main entry point, this module builds the producer from the submodules. """ import os @@ -34,7 +34,11 @@ if __name__ == "__main__": """ This is the producers entry point, initializes all the components (:class:`communicator.Communicator`, :class:`consumerlocator.ConsumerLocator` and :class:`messagesender.MessageSender`) and sends infinite random - messages. + messages. Basically this is a big loop, learning about consumers ( :func:`consumerlocator.ConsumerLocator.learnconsumerlist` ), + updating the current ( :func:`consumerlocator.ConsumerLocator.updateconsumer` ) one and sending the message + ( :func:`messagesender.MessageSender.sendmessage` ). + If the current consumer is unavailable, the update will change to an available one. To not flood the network with + infinite data, we some random time. """ LOGGER.info("Producer started") generateduuid = str(uuid.uuid4())