Update manage.py

This commit is contained in:
qiaofeng1227 2023-04-16 20:23:25 +08:00 committed by GitHub
parent 747b9ff0eb
commit be79cef60e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,9 +142,11 @@ def delete_app_failedjob(app_id):
def uninstall_app(app_id):
code, message = docker.check_appid_include_rq(app_id)
if code == None:
app_name = split_app_id(app_id)
app_name = app_id.split('_')[0]
info, code_exist = app_exits_in_docker(app_id)
if code_exist:
myLogger.info_logger("code_exist")
myLogger.info_logger(code_exist)
if code_exist:
app_path = info.split()[-1].rsplit('/', 1)[0]
cmd = "docker compose -f " + app_path + "/docker-compose.yml down -v"
lib_path = '/data/library/apps/' + app_name
@ -155,7 +157,6 @@ def uninstall_app(app_id):
delete_app_failedjob(app_id)
else:
raise CommandException(code, message, "")
return ret
def check_app(app_name, customer_name, app_version):
message = ""