"""gunicorn settings that need code. The scheduler runs inside the single worker (AD-12).""" def post_worker_init(worker): from portal.scheduler.runner import runner runner.start()