zhangyong 3 달 전
부모
커밋
41cb7e0c57
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      job_hour_data_redis.py

+ 5 - 5
job_hour_data_redis.py

@@ -21,8 +21,8 @@ def schedule_tasks():
     schedule.every().hour.at(":35").do(jab_top_recommend)
 
 if __name__ == "__main__":
-    jab_top_recommend()
-    # schedule_tasks()  # 调用任务调度函数
-    # while True:
-    #     schedule.run_pending()
-    #     time.sleep(1)  # 每秒钟检查一次
+    # jab_top_recommend()
+    schedule_tasks()  # 调用任务调度函数
+    while True:
+        schedule.run_pending()
+        time.sleep(1)  # 每秒钟检查一次