Close connections.
This commit is contained in:
Родитель
5961297a55
Коммит
78f725efc0
|
@ -363,6 +363,9 @@ def _upsert_build_id_aggregates(aggregates, dry_run=False):
|
|||
else:
|
||||
conn.commit()
|
||||
|
||||
cursor.close()
|
||||
conn.close()
|
||||
|
||||
|
||||
def _upsert_submission_date_aggregates(aggregates, dry_run=False):
|
||||
conn = create_connection(autocommit=False)
|
||||
|
@ -391,10 +394,14 @@ def _upsert_submission_date_aggregates(aggregates, dry_run=False):
|
|||
else:
|
||||
conn.commit()
|
||||
|
||||
cursor.close()
|
||||
conn.close()
|
||||
|
||||
|
||||
def _vacuumdb():
|
||||
conn = create_connection()
|
||||
conn.set_isolation_level(0)
|
||||
cursor = conn.cursor()
|
||||
cursor.execute("vacuum")
|
||||
cursor.close()
|
||||
conn.close()
|
||||
|
|
2
setup.py
2
setup.py
|
@ -12,7 +12,7 @@ import setuptools.command.install
|
|||
|
||||
|
||||
setup(name='python_mozaggregator',
|
||||
version='0.2.1.4',
|
||||
version='0.2.1.5',
|
||||
author='Roberto Agostino Vitillo',
|
||||
author_email='rvitillo@mozilla.com',
|
||||
description='Telemetry aggregation job',
|
||||
|
|
Загрузка…
Ссылка в новой задаче