qiaofeng1227 2 lat temu
rodzic
commit
5ab8a8def5
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      appmanage/Dockerfile
  2. 1 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 supervisord
+# Install supervisords
 RUN apt install -y supervisor
 COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
 COPY config/cmd.sh /cmd.sh

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

@@ -39,7 +39,7 @@ def auto_update():
 scheduler = BackgroundScheduler()
 #scheduler.add_job(auto_update, CronTrigger(hour=1, minute=0))
 scheduler.add_job(auto_update, IntervalTrigger(minutes=1))
-scheduler.shutdown()
+#scheduler.shutdown()
 
 # 获取github文件内容
 def get_github_content(repo, path):