INNER CODE UNIT · Python

_schedule_dify_external_knowledge_warmup

skygazer42/MimirQ · app/main.py:389

def _schedule_dify_external_knowledge_warmup() -> None:
    try:
        from app.api.v1.integrations_dify import start_dify_external_knowledge_warmup

        start_dify_external_knowledge_warmup()
    except Exception as exc:  # noqa: BLE001
        logger.warning("Failed to schedule Dify external knowledge warmup: %s", str(exc)[:200])


async def _stop_task_queue_observability_poller() -> None:
    if not bool(getattr(settings, "PROMETHEUS_ENABLED", False)):
        return
    try:
        from app.services.task_queue_observability_service import stop_task_queue_observability_poller

        await stop_task_queue_observability_poller()
    except Exception as exc:  # noqa: BLE001
        logger.warning("Failed to stop task queue observability poller: %s", str(exc)[:200])

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…