import importlib

from .constants import *
from .log import *
from .lib.structs import *
from .lib.http import resp
from .config import settings
from .dome import dome
from .server import app, start_server, add_routes
from .lib.jobs import attach_scheduler
from .lib.redis_pubsub import attach_redis_rpc

rpc = attach_redis_rpc(app, **settings)
attach_scheduler(app)

# if settings.master:
#     importlib.import_module('band.director', 'band')
# else:
#     importlib.import_module(f'band.services.{settings.name}', 'band')
#     
if settings.name != BAND_SERVICE:
    importlib.import_module('band.lib.promote', 'band')
87f67e2f31bd6f136e7e00d88a5b42001e605111
<mask token>

<mask token>
attach_scheduler(app)
if settings.name != BAND_SERVICE:
    importlib.import_module('band.lib.promote', 'band')

<mask token>
rpc = attach_redis_rpc(app, **settings)
attach_scheduler(app)
if settings.name != BAND_SERVICE:
    importlib.import_module('band.lib.promote', 'band')

import importlib
from .constants import *
from .log import *
from .lib.structs import *
from .lib.http import resp
from .config import settings
from .dome import dome
from .server import app, start_server, add_routes
from .lib.jobs import attach_scheduler
from .lib.redis_pubsub import attach_redis_rpc
rpc = attach_redis_rpc(app, **settings)
attach_scheduler(app)
if settings.name != BAND_SERVICE:
    importlib.import_module('band.lib.promote', 'band')

import importlib

from .constants import *
from .log import *
from .lib.structs import *
from .lib.http import resp
from .config import settings
from .dome import dome
from .server import app, start_server, add_routes
from .lib.jobs import attach_scheduler
from .lib.redis_pubsub import attach_redis_rpc

rpc = attach_redis_rpc(app, **settings)
attach_scheduler(app)

# if settings.master:
#     importlib.import_module('band.director', 'band')
# else:
#     importlib.import_module(f'band.services.{settings.name}', 'band')
#     
if settings.name != BAND_SERVICE:
    importlib.import_module('band.lib.promote', 'band')