|
|
|
@ -116,6 +116,8 @@ def get_photo2_align_info(pid): |
|
|
|
r = create_redis_connection() |
|
|
|
r = create_redis_connection() |
|
|
|
r.rpush('ai:ai_build_mesh',pid) |
|
|
|
r.rpush('ai:ai_build_mesh',pid) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#删除文件夹 |
|
|
|
|
|
|
|
shutil.rmtree(os.path.join(config.workdir, pid), ignore_errors=True) |
|
|
|
|
|
|
|
|
|
|
|
def create_redis_connection(): |
|
|
|
def create_redis_connection(): |
|
|
|
"""创建 Redis 连接,若连接失败则重试""" |
|
|
|
"""创建 Redis 连接,若连接失败则重试""" |
|
|
|
|