图片内容,将图片地址缓存到redis,然后通过随机redis快速提取路径。减少等待时间
This commit is contained in:
2
main.py
2
main.py
@@ -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") # 替换为你的图片目录
|
||||
|
||||
Reference in New Issue
Block a user