Parcourir la source

修改scheduler max_instances

daniel il y a 2 ans
Parent
commit
1123b720f0
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      QMT/download_data_whole.py
  2. 1 1
      QMT/qmt_get_indicators.py

+ 1 - 1
QMT/download_data_whole.py

@@ -85,7 +85,7 @@ if __name__ == '__main__':
 
     scheduler = BlockingScheduler()
     scheduler.add_job(func=download_data, trigger='cron', day_of_week='0-4', hour='20', minute='05',
-                      timezone="Asia/Shanghai")
+                      timezone="Asia/Shanghai", max_instances=250)
     try:
         scheduler.start()
     except (KeyboardInterrupt, SystemExit):

+ 1 - 1
QMT/qmt_get_indicators.py

@@ -348,7 +348,7 @@ if __name__ == '__main__':
 
     scheduler = BlockingScheduler()
     scheduler.add_job(func=ind, trigger='cron', day_of_week='0-4', hour='20', minute='30',
-                      timezone="Asia/Shanghai")
+                      timezone="Asia/Shanghai", max_instances=250)
     try:
         scheduler.start()
     except (KeyboardInterrupt, SystemExit):