从环境变量获取定时计划
This commit is contained in:
@@ -408,9 +408,12 @@ if __name__ == "__main__":
|
|||||||
import schedule
|
import schedule
|
||||||
|
|
||||||
# schedule.every().day.at("07:00").do(clear_order_from_oddsjam)
|
# schedule.every().day.at("07:00").do(clear_order_from_oddsjam)
|
||||||
|
UPLOAD_SCHEDULE = os.environ.get("UPLOAD_SCHEDULE", "11:20")
|
||||||
|
PULL_SCHEDULE = os.environ.get("PULL_SCHEDULE", "13:00")
|
||||||
|
|
||||||
schedule.every().day.at("11:20").do(pull_data_from_oddsjam_update)
|
|
||||||
schedule.every().day.at("14:00").do(upload_new_bets_data2oddsjam)
|
schedule.every().day.at(PULL_SCHEDULE).do(pull_data_from_oddsjam_update)
|
||||||
|
schedule.every().day.at(UPLOAD_SCHEDULE).do(upload_new_bets_data2oddsjam)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
schedule.run_pending()
|
schedule.run_pending()
|
||||||
|
|||||||
Reference in New Issue
Block a user