The microservice base class (both Ruby and Python) should print a message in the nominal case to indicate it is exiting and thus will be shutdown. This can help with debugging custom microservices since the run method is meant to block and not return. If a custom microservice spawns a thread or doesn't run inside a while loop it will simply return and thus exit.
Something like the following:
Logger.info("Microservice #{name} run method returned cleanly and will now shutdown.")
The microservice base class (both Ruby and Python) should print a message in the nominal case to indicate it is exiting and thus will be shutdown. This can help with debugging custom microservices since the
runmethod is meant to block and not return. If a custom microservice spawns a thread or doesn't run inside a while loop it will simply return and thus exit.Something like the following:
Logger.info("Microservice #{name} run method returned cleanly and will now shutdown.")