Эх сурвалжийг харах

修改附件重跑的逻辑

luojiehua 2 жил өмнө
parent
commit
929558ff9c

+ 1 - 1
BaseDataMaintenance/maintenance/dataflow_mq.py

@@ -109,7 +109,7 @@ class Dataflow_ActivteMQ_attachment(Dataflow_attachment):
                                       "html":_html})
                                       "html":_html})
                 else:
                 else:
                     #has process_time then jump
                     #has process_time then jump
-                    if len(str(_attach.getProperties().get(attachment_process_time,"")))>10:
+                    if len(str(_attach.getProperties().get(attachment_process_time,"")))>10 and _attach.getProperties().get(attachment_status)!=ATTACHMENT_INIT:
                         log("%s has process_time jump"%(_filemd5))
                         log("%s has process_time jump"%(_filemd5))
                         _html = _attach.getProperties().get(attachment_attachmenthtml,"")
                         _html = _attach.getProperties().get(attachment_attachmenthtml,"")
                         if _html is None:
                         if _html is None: