qiaofeng1227 2 лет назад
Родитель
Сommit
979a0408d1
2 измененных файлов с 3 добавлено и 2 удалено
  1. 1 1
      appmanage/Dockerfile
  2. 2 1
      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 supervisords
+# Install supervisord
 RUN apt install -y supervisor
 COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
 COPY config/cmd.sh /cmd.sh

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

@@ -408,7 +408,8 @@ def get_apps_from_queue():
         installing_list.append(app)
     for job_id in failed_jobs:
         job = q.fetch_job(job_id)
-        app = get_rq_app(job_id, 'failed', "", "", "")
+        detail = job.exc_info
+        app = get_rq_app(job_id, 'failed', "", "", detail)
         installing_list.append(app)
 
     return installing_list