整理线上配置

main
RogerWork 9 months ago
parent a4a6ebda62
commit 40b7d979db
  1. 7
      update/views.py

@ -114,6 +114,9 @@ def update_cine(request):
cmd_dict[cmd['process']] = [cmd['id']]
print(cmd_dict)
# 初始化redis
redis_conn = get_redis_connection()
# 增加状态
update_status = {
'git': {'result': '', 'msg': ''},
@ -125,8 +128,8 @@ def update_cine(request):
}
cinema_update_status[cinema_ip] = copy.deepcopy(update_status)
redis_conn = get_redis_connection()
redis_conn.set(f'cinema_update_status_{cinema_ip}', json.dumps(update_status), 10*60)
# redis_conn.set(f'cinema_update_status_{cinema_ip}', json.dumps(update_status), 10*60)
print("ws调试", cinema_update_status)
short_release = req.get('version')

Loading…
Cancel
Save