瀏覽代碼

更新 share_url
更新 logo.png

罗俊辉 1 年之前
父節點
當前提交
76b7f70a1a
共有 3 個文件被更改,包括 7 次插入6 次删除
  1. 1 0
      applications/functions/calculate.py
  2. 1 1
      applications/process.py
  3. 5 5
      read_data_from_odps_daily.py

+ 1 - 0
applications/functions/calculate.py

@@ -97,6 +97,7 @@ def compute_similarity(file_1, file_2):
 def title_mix(title_p, dt, trace_id):
     """
     执行代码
+    :param trace_id: 请求唯一 id
     :param title_p:
     :param dt: dt
     """

+ 1 - 1
applications/process.py

@@ -125,7 +125,7 @@ class ProcessParams(object):
         yesterday_str = yesterday.strftime("%Y%m%d")
         logging(
             code="1002",
-            info="昨日的时间戳是---{}".format(yesterday),
+            info="昨日的时间戳是---{}".format(yesterday_str),
             function="process",
             trace_id=self.trace_id,
         )

+ 5 - 5
read_data_from_odps_daily.py

@@ -73,9 +73,9 @@ def run():
 
 
 if __name__ == '__main__':
-    # run()
+    run()
     # 设置任务每天的 9:00 执行
-    schedule.every().day.at("09:00").do(run)
-    while True:
-        schedule.run_pending()
-        time.sleep(1)
+    # schedule.every().day.at("09:00").do(run)
+    # while True:
+    #     schedule.run_pending()
+    #     time.sleep(1)