|
@@ -32,7 +32,7 @@ end_date_month = (datetime.datetime.now() + dateutil.relativedelta.relativedelta
|
|
|
# start_date_month = "20230301"
|
|
|
# end_date_month = "20230401"
|
|
|
def job():
|
|
|
- if datetime.date.today().day != 4:
|
|
|
+ if datetime.date.today().day != 3:
|
|
|
print("%s 等待4号执行程序"%datetime_now())
|
|
|
else:
|
|
|
# 连接mysql
|
|
@@ -49,7 +49,7 @@ def job():
|
|
|
MysqlUtil.close()
|
|
|
|
|
|
|
|
|
-schedule.every().day.at("08:30").do(job)
|
|
|
+schedule.every().day.at("20:30").do(job)
|
|
|
while True:
|
|
|
schedule.run_pending()
|
|
|
time.sleep(30)
|