Jelajahi Sumber

启动脚本

luojiehua 2 tahun lalu
induk
melakukan
49ac44ac88

+ 0 - 2
BaseDataMaintenance/model/ots/proposedBuilding_tmp.py

@@ -310,8 +310,6 @@ class proposedBuilding_tmp(BaseModel):
                                 progress_remark += "截止%s"%(_project.get("zhong_biao_page_time"))
                             if _project.get("win_tenderer") is not None:
                                 progress_remark += "确定%s中标人为%s"%(_stage,_project.get("win_tenderer"))
-                            else:
-                                progress_remark += "暂未确定中标人。"
 
                             if _project.get("win_tenderer") is not None:
                                 if _project.get("win_tenderer") not in set_enterprise:

+ 1 - 1
BaseDataMaintenance/model/postgres/attachment.py

@@ -56,7 +56,7 @@ class Attachment_postgres(BaseModel):
     #filemd5,path,crtime,attachmenthtml,attachmentcon,process_time,page_time,docids,filetype,status,sourcelink,filetitle
 
     def __init__(self,_dict):
-        self.columns = set(["filemd5","path","crtime","attachmenthtml","attachmentcon","process_time","docids","filetype","status","filetitle","recsize","swfUrls","size"])
+        self.columns = set([attachment_filemd5,attachment_path,attachment_crtime,attachment_attachmenthtml,attachment_attachmentcon,attachment_process_time,attachment_docids,attachment_filetype,attachment_status,attachment_file_title,attachment_file_link,attachment_recsize,attachment_swfUrls,attachment_size,attachment_has_table])
         for k,v in _dict.items():
             if k in self.columns:
                 # if k in ("attachmenthtml","attachmentcon") and v is not None:

+ 40 - 5
BaseDataMaintenance/readme/start.md

@@ -1,6 +1,8 @@
 
+##121.46.18.113
+#项目路径/data/python/BaseDataMaintenance
 
-#11022启动同步定时器
+#121.46.18.113:11022启动同步定时器
 #切换目录
 cd /data/python
 #激活环境
@@ -11,7 +13,7 @@ ps -ef | grep start_dataflow_init | grep -v grep | cut -c 9-16| xargs kill -9
 nohup python BaseDataMaintenance/start_dataflow_init.py >> flow_init.log &
 
 
-#11022启动要素提取定时器
+#121.46.18.113:11022启动要素提取定时器
 #切换目录
 cd /data/python
 #激活环境
@@ -21,7 +23,7 @@ ps -ef | grep start_dataflow_extract | grep -v grep | cut -c 9-16| xargs kill -9
 #启动
 nohup python BaseDataMaintenance/start_dataflow_extract.py >> flow_extract.log &
 
-#11022启动监控程序
+#121.46.18.113:11022启动监控程序
 #切换目录
 cd /data/python
 #激活环境
@@ -33,7 +35,7 @@ nohup python BaseDataMaintenance/start_dataflow_monitor.py >> flow_monitor.log &
 
 
 ===================================
-#19022启动监控程序
+#121.46.18.113:19022启动监控程序
 #切换目录
 cd /data/python
 #激活环境
@@ -43,7 +45,7 @@ ps -ef | grep start_dataflow_attach_monitor | grep -v grep | cut -c 9-16| xargs
 #启动
 nohup python BaseDataMaintenance/start_dataflow_attach_monitor.py >> flow_monitor.log &
 
-#19022启动附件识别程序
+#121.46.18.113:19022启动附件识别程序
 #切换目录
 cd /data/python
 #激活环境
@@ -53,3 +55,36 @@ ps -ef | grep start_dataflow_attachment | grep -v grep | cut -c 9-16| xargs kill
 #启动
 nohup python BaseDataMaintenance/start_dataflow_attachment.py >> flow_attachment.log &
 
+#47.98.57.0:
+#项目路径/mnt/python/BaseDataMaintenance
+
+#启动拟在建入库程序
+cd /mnt/python
+ps -ef | grep start_sychro_proposedBuilding | grep -v grep | cut -c 9-16| xargs kill -9
+nohup ./ENV/bin/python BaseDataMaintenance/start_sychro_proposedBuilding.py >> proposedBuilding.log &
+
+#启动周期项目入库程序
+cd /mnt/python
+ps -ef | grep start_fille_preproject | grep -v grep | cut -c 9-16| xargs kill -9
+nohup ./ENV/bin/python BaseDataMaintenance/start_fille_preproject.py >> fill_preproject.out &
+
+
+
+#116.62.126.219
+#项目路径/home/appuser/python/BaseDataMaintenance
+
+
+#启动去重程序
+cd /home/appuser/python
+ps -ef | grep start_dataflow_dumplicate | grep -v grep | cut -c 9-16| xargs kill -9
+nohup ./ENV/bin/python BaseDataMaintenance/start_dataflow_dumplicate.py > flow_dumplicate.log &
+
+#启动数据清理程序
+cd /home/appuser/python
+ps -ef | grep start_dataflow_remove | grep -v grep | cut -c 9-16| xargs kill -9
+nohup ./ENV/bin/python BaseDataMaintenance/start_dataflow_remove.py >> flow_remove.log &
+
+#启动周期项目去重程序
+cd /home/appuser/python
+ps -ef | grep start_drop_preproject_dump | grep -v grep | cut -c 9-16| xargs kill -9
+nohup ./ENV/bin/python BaseDataMaintenance/start_drop_preproject_dump.py >> preproject_dump.log &