|
@@ -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,
|