Browse Source

delete app

qiaofeng1227 2 years ago
parent
commit
d042f36783
2 changed files with 3 additions and 3 deletions
  1. 1 1
      appmanage/Dockerfile
  2. 2 2
      appmanage/api/service/manage.py

+ 1 - 1
appmanage/Dockerfile

@@ -10,7 +10,7 @@ COPY static ./static
 COPY requirements.txt main.py  ./
 RUN apt update
 
-# Install supervisord
+# Install supervisords
 RUN apt install -y supervisor
 COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
 COPY config/cmd.sh /cmd.sh

+ 2 - 2
appmanage/api/service/manage.py

@@ -259,13 +259,13 @@ def install_app_delay(app_name, customer_name, app_version):
             raise Exception(error_info)
     except CommandException as ce:
         myLogger.info_logger(customer_name + " install failed(docker)!")
-        uninstall_app(job_id)
+        delete_app(job_id)
         error_info= "##websoft9##" + ce.code + "##websoft9##" + ce.message + "##websoft9##" + ce.detail 
         myLogger.info_logger(error_info)
         raise Exception(error_info)
     except Exception as e:
         myLogger.info_logger(customer_name + " install failed(system)!")
-        uninstall_app(job_id)
+        delete_app(job_id)
         error_info= "##websoft9##" + const.ERROR_SERVER_SYSTEM + "##websoft9##" + 'system original error' + "##websoft9##" + str(e) 
         myLogger.info_logger(error_info)
         raise Exception(error_info)