|
@@ -159,6 +159,11 @@ class Dataflow_ActivteMQ_attachment(Dataflow_attachment):
|
|
page_attachments = json.loads(item.get(document_tmp_attachment_path,"[]"))
|
|
page_attachments = json.loads(item.get(document_tmp_attachment_path,"[]"))
|
|
_dochtmlcon = item.get(document_tmp_dochtmlcon,"")
|
|
_dochtmlcon = item.get(document_tmp_dochtmlcon,"")
|
|
|
|
|
|
|
|
+ if random.random()<0.1:
|
|
|
|
+ if send_msg_toacmq(self.pool_mq,json.dumps(item,cls=MyEncoder,ensure_ascii=False),self.mq_attachment):
|
|
|
|
+ return
|
|
|
|
+
|
|
|
|
+
|
|
if len(page_attachments)==0:
|
|
if len(page_attachments)==0:
|
|
newitem ={"item":item,"list_attach":[],"message_id":message_id,"conn":conn}
|
|
newitem ={"item":item,"list_attach":[],"message_id":message_id,"conn":conn}
|
|
else:
|
|
else:
|