Selaa lähdekoodia

update:crawlab节点名称运行环境字段属性

dongzhaorui 2 vuotta sitten
vanhempi
commit
d785ffe228
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      FworkSpider/feapder/core/parser_control.py

+ 1 - 1
FworkSpider/feapder/core/parser_control.py

@@ -507,7 +507,7 @@ class PaserControl(threading.Thread):
         run_time = tools.get_current_date(date_format="%Y-%m-%d")  # 运行时间,单位:天
         spider_id = tools.get_md5(code + business_type + run_time)
         heartbeat_content = dict(
-            node_ip=tools.os.environ.get("CRAWLAB_NODE_IP"),  # crawlab节点名称
+            node_ip=tools.os.environ.get("CRAWLAB_SERVER_REGISTER_IP"),  # crawlab节点名称
             crawlab_taskid=tools.os.environ.get("CRAWLAB_TASK_ID"),  # crawlab平台爬虫的任务id
             site=site,
             channel=channel,