import threading import logging from core.server.server import startServer from core.execution.lifecyclemanager.lifecycleregistry import registerLifecycle from core.execution.createthread import buildThread from plugins.rmass.monitors import rmassmonitor from plugins.rmass.actions import refresh_tokens logging.basicConfig( level=logging.WARNING, format="%(levelname)s: %(message)s" ) import login import synapsemessagepush rmassmonitor.mode = "continuous" refresh_tokens.mode = "continuous" thread = buildThread(rmassmonitor) thread = buildThread(refresh_tokens) thread = threading.Thread( target=startServer, #args=(module, lifecycles) name="RMASS Bridge Server" ) thread.start()