@@ -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
@@ -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,
)
@@ -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)