import asyncio
import logging
logger = logging.getLogger('dscons.openrouter_cron')
async def update_openrouter_latency():
    logger.info('[OpenRouter Cron] Updating latency and costs for OpenRouter models...')
async def start_openrouter_cron_loop():
    logger.info('Starting OpenRouter latency cron')
    while True:
        try:
            await update_openrouter_latency()
        except Exception as e:
            logger.error(f'Error: {e}')
        await asyncio.sleep(60)
