图片内容,将图片地址缓存到redis,然后通过随机redis快速提取路径。减少等待时间

This commit is contained in:
liuwei
2025-05-20 11:13:06 +08:00
parent b436d08f5d
commit ab7f27bea0

View File

@@ -112,7 +112,7 @@ def jobs(robot: Robot):
async def login_check_job():
await asyncio.to_thread(robot.login_twice_auto_auth)
@async_job.at_times(["11:150"])
@async_job.at_times(["11:15"])
async def update_image_cache_job():
logger.info("开始执行图片缓存更新任务")
manager = ImageCacheManager("/mnt/nfs_share") # 替换为你的图片目录