From 5f0493e4c029fa9a36a7a7cf497ea9038563d2a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 24 May 2016 23:48:50 +0200 Subject: [PATCH] misc: close postgresql connection after cronjobs (#11035) --- wcs/qommon/cron.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wcs/qommon/cron.py b/wcs/qommon/cron.py index 16095d5..1bfd512 100644 --- a/wcs/qommon/cron.py +++ b/wcs/qommon/cron.py @@ -66,6 +66,7 @@ def cron_worker(publisher, now): job.function(publisher) except: publisher.notify_of_exception(sys.exc_info(), context='[CRON]') + publisher.cleanup() def cron(publisher): global parent_killed -- 2.8.1