aboutsummaryrefslogtreecommitdiff
path: root/rpki/rpkid_tasks.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2014-08-19 00:57:07 +0000
committerRob Austein <sra@hactrn.net>2014-08-19 00:57:07 +0000
commit552dd528a91d4e79d05c292b29a0cd766d5e2aa6 (patch)
tree11eaaf813b137e957b0200b278dd0a55bebff3d0 /rpki/rpkid_tasks.py
parent18a51b25b3e2513106e0cc3be83c5e33fadb2dfb (diff)
parent292dceaf899b9221795e655936f839244fd0043e (diff)
First cut at proper transactions for new pubd SQL code.
svn path=/branches/tk705/; revision=5922
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 8f652fa6..959d4223 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)