创建服务器实例后延迟60秒自动更新服务器公网IP等详细信息
This commit is contained in:
parent
ee672806e0
commit
660c7f499e
@ -850,6 +850,14 @@ def create_aliyun_server(order_name):
|
|||||||
|
|
||||||
jingrow.db.commit()
|
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
|
return True
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user