This commit is contained in:
qiaofeng1227 2023-06-19 10:16:32 +08:00
parent ba6957c84e
commit 5ab8a8def5
2 changed files with 2 additions and 2 deletions
appmanage

View file

@ -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

View file

@ -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):