wangkun 2 年之前
父节点
当前提交
a5f98bf2e6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gongzhonghao/gongzhonghao_main/run_gongzhonghao1_author_scheduling.py

+ 1 - 1
gongzhonghao/gongzhonghao_main/run_gongzhonghao1_author_scheduling.py

@@ -17,7 +17,7 @@ def main(log_type, crawler, task, env):
         cmd = 'ps -ef | grep "run_gongzhonghao1_author_scheduling.py" | grep -v "grep"'
         result = os.popen(cmd).read()
         Common.logger(log_type, crawler).info(f"len_result:{len(result)}")
-        if len(result) != 0:
+        if len(result) != 573:
             Common.logger(log_type, crawler).info("公众号_1抓取未完成,无需启动新进程")
             time.sleep(1)
         else: