renyupeng 3 years ago
parent
commit
826b286390
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Apietl/kwai_etl/report/CampaignDailyReport.py

+ 1 - 0
Apietl/kwai_etl/report/CampaignDailyReport.py

@@ -212,6 +212,7 @@ class CampaignDailyReport:
                 print(sql)
                 TidbConn.upsert(conn=self.conn, sql_buff=sql)
                 self.conn.commit()
+            TidbConn.conn_close(conn=self.conn)
             return 0
         except Exception as e:
             logging.error(e)