delete app

This commit is contained in:
qiaofeng1227 2023-05-25 16:26:27 +08:00
parent cecade4a4a
commit d042f36783
2 changed files with 3 additions and 3 deletions

View file

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

View file

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