添加状态检查

This commit is contained in:
pengtao 2019-09-29 13:42:01 +08:00
parent 16f4159401
commit 673941b81f

View File

@ -160,5 +160,5 @@ def produce_task():
log.info(f"produce {len(all)} 2 redis!") #log.info("end produce cache!")
my_redis.set("ad_produce", run_status)
now = datetime.datetime.now()
timestamp = datetime.datetime.timestamp(now)
timestamp = int(datetime.datetime.timestamp(now))
my_redis.set("ad_produce_time", timestamp)