From f22ba99f70d3cf12d4241658910dc0f1336c8876 Mon Sep 17 00:00:00 2001 From: pengtao Date: Mon, 16 Sep 2019 17:17:14 +0800 Subject: [PATCH] fix --- ad_tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ad_tasks.py b/ad_tasks.py index 1d5e81c..f4f757b 100644 --- a/ad_tasks.py +++ b/ad_tasks.py @@ -48,12 +48,12 @@ def split_ad_info(localtionid, line): def sadd_adkey(key, line, item): my_redis.sadd(key, line['id']) - my_redis.expire(key, 120) + my_redis.expire(key, 60*60) info_key = f"adinfo::{line['id']}::info" new_line = split_ad_info(item, line) if new_line: my_redis.hmset(info_key, new_line) - my_redis.expire(info_key, 60 * 2) + my_redis.expire(info_key, 60 * 60) else: log.error(f"split adinfo about locationid failed! localtionid={item} ")