Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def run_worker():
"""Run worker doing all sorts of background work"""
from asu.utils.garbagecollector import GarbageCollector
from asu.utils.boss import Boss
from asu.utils.updater import Updater
logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger(__name__)
log.info("start garbage collector")
gaco = GarbageCollector()
gaco.start()
log.info("start boss")
boss = Boss()
boss.start()
log.info("start updater")
uper = Updater()
uper.start()
from asu.utils.garbagecollector import GarbageCollector
from asu.utils.boss import Boss
from asu.utils.updater import Updater
import logging
logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger(__name__)
log.info("start garbage collector")
gaco = GarbageCollector()
gaco.start()
log.info("start boss")
boss = Boss()
boss.start()
log.info("start updater")
uper = Updater()
uper.start()