Closed ColorfulGhost closed 6 years ago
麻烦提供详细过程。 不明白你下载的什么版本?同时不清楚你是如何操作的
0.1版本 执行:python3 scheduler_booter.py
的时候报错 ,如何排查这个问题呢?
文档写了
python scheduler_booter.py --usage crawler
python scheduler_booter.py --usage validator
麻烦仔细读读项目的流程和有些什么组件。你运行调度器至少得指定调度哪个东西吧?
这个我知道 ,但是无论写不写参数它都一样出现这个问题 , python3 scheduler_booter.py --usage validator iciba
python3.6 scheduler_booter.py --usage crawler common ajax
也一样
没道理啊。以前没用户反馈过这个问题,我今晚测试一下吧。你能具体说说你的环境和配置操作过程吗? iciba这个是你写的检验器吗?你先拉一个未改动的代码下来运行试试吧,看看有不有这个问题
@ColorfulGhost 你好,晚上我测试了。我这边没法复现你这个问题。看报错可能是
if not r or (now - int(r.decode('utf-8'))) >= internal * 60:
这段代码的问题。它位于scheduler.py, 你可以调试一下,主要是看 r是否为None
,然后打印一下
now - int(r.decode('utf-8'))
这个变量,看它是否为None
,错误很可能是出在这里