Explorar o código

定时删除attachment表数据修复

luojiehua %!s(int64=2) %!d(string=hai) anos
pai
achega
a69cd36549
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      BaseDataMaintenance/maintenance/dataflow_mq.py

+ 1 - 1
BaseDataMaintenance/maintenance/dataflow_mq.py

@@ -513,7 +513,7 @@ class Dataflow_ActivteMQ_attachment(Dataflow_attachment):
 
     def remove_attachment_postgres(self):
         current_date = getCurrent_date(format="%Y-%m-%d")
-        last_date = timeAdd(current_date,-30,format="%Y-%m-%d")
+        last_date = timeAdd(current_date,-2,format="%Y-%m-%d")
         sql = " delete from attachment where crtime<='%s 00:00:00' "%(last_date)
         conn = getConnection_postgres()
         cursor = conn.cursor()