Files

19 lines
310 B
Python

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(f"THREAD STARTED, {thread}")
return thread