From 00e7265d434de4e6df3cba6cc545658700780fa6 Mon Sep 17 00:00:00 2001 From: pengtao Date: Sun, 29 Sep 2019 13:48:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=8A=B6=E6=80=81=E6=A3=80?= =?UTF-8?q?=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ad_interface_tornado.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ad_interface_tornado.py b/ad_interface_tornado.py index 058a4da..5445ff3 100644 --- a/ad_interface_tornado.py +++ b/ad_interface_tornado.py @@ -122,12 +122,11 @@ class DispatchHandler(tornado.web.RequestHandler): def _selfCheckingHandler(self): cron_time = 2 * 60 + 5 - #pdb.set_trace() ad_produce_time = my_redis.get("ad_produce_time") or 0 ad_produce_status = my_redis.get("ad_produce") or 0 now_stamp = int(datetime.datetime.timestamp(datetime.datetime.now())) timediff = now_stamp - int(ad_produce_time) - print(f"{now_stamp} {ad_produce_time} {cron_time}") + pdb.set_trace() if ad_produce_status != 1 or timediff > cron_time: self.write(json.dumps( {'errcode': 1, 'errmsg': f'timediff ={timediff},status={ad_produce_status}', 'healthy': 1,