import threading import logging from .lifecyclemanager import manageLifecycle def buildThread(module): thread = threading.Thread( target=manageLifecycle, args=(module,), name=module.name ) thread.start() logging.info("THREAD STARTED", thread) return thread