INNER CODE UNIT · Python

index

kfcx/Streaming-Media-Server-Pro · app/api/__init__.py:47

async def index():
    return Response200(data=base64.b64decode("6L+Z5piv5LiA5Liq5byA5rqQ55qESVBUVuacjeWKoemhueebru+8jOWKn+iDveW8uuWkp+S4lOmAguWQiOS7u+aEj+W5s+WPsOOAgg==").decode("utf-8"),
                       msg=base64.b64decode("5LqG6Kej5pu05aSa6K+36K6/6Zeu77yaaHR0cHM6Ly9naXRodWIuY29tLzIzOTE0NDQ5OC9TdHJlYW1pbmctTWVkaWEtU2VydmVyLVBybw==").decode("utf-8"), code=200)


@app.on_event("startup")
async def startup():
    import pytz
    executors = {
        'default': ThreadPoolExecutor(5),
        'processpool': ProcessPoolExecutor(2)
    }
    job_defaults = {
        'coalesce': True,  # 默认为新任务关闭合并模式()
        'max_instances': 3  # 设置新任务的默认最大实例数为3
    }
    global scheduler
    scheduler = BackgroundScheduler()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…