aboutsummaryrefslogtreecommitdiff
path: root/rpki/rpkid_tasks.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2014-08-18 23:02:36 +0000
committerRob Austein <sra@hactrn.net>2014-08-18 23:02:36 +0000
commit292dceaf899b9221795e655936f839244fd0043e (patch)
tree6ff2160f48644c09c58197c3e297a18f688f4f8e /rpki/rpkid_tasks.py
parent18232e0d37b59e7c3f0274408a4024c213d68e07 (diff)
Sweep SQL cache on task exit. See #707.
svn path=/trunk/; revision=5921
Diffstat (limited to 'rpki/rpkid_tasks.py')
-rw-r--r--rpki/rpkid_tasks.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpki/rpkid_tasks.py b/rpki/rpkid_tasks.py
index e0bb6904..58b4bcfe 100644
--- a/rpki/rpkid_tasks.py
+++ b/rpki/rpkid_tasks.py
@@ -115,6 +115,7 @@ class AbstractTask(object):
self.completions.append(completion)
def exit(self):
+ self.self.gctx.sql.sweep()
while self.completions:
self.completions.pop(0)(self)
self.clear()
@@ -122,6 +123,7 @@ class AbstractTask(object):
self.self.gctx.task_next()
def postpone(self, continuation):
+ self.self.gctx.sql.sweep()
self.continuation = continuation
self.due_date = None
self.self.gctx.task_add(self)