Files
rmmanager/initialize.py
T

42 lines
946 B
Python

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
from core.console import console
from rich.logging import RichHandler
logging.basicConfig(
level=logging.WARNING,
format="%(message)s",
handlers=[
RichHandler(
console=console,
show_time=False,
show_path=False
)
],
force=True
)
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()