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)  # 每秒钟检查一次