创建服务器实例后延迟60秒自动更新服务器公网IP等详细信息

This commit is contained in:
jingrow 2025-07-29 17:59:33 +08:00
parent ee672806e0
commit 660c7f499e

View File

@ -850,6 +850,14 @@ def create_aliyun_server(order_name):
jingrow.db.commit()
# 延迟60秒执行update_server_record来更新服务器详细信息
time.sleep(60)
jingrow.enqueue(
"jcloud.api.aliyun_server_light.update_server_record",
instance_ids=json.dumps([instance_id]),
timeout=120
)
return True
except Exception as e: