aboutsummaryrefslogtreecommitdiff
path: root/rpkid/rpki/irdb/zookeeper.py
diff options
context:
space:
mode:
Diffstat (limited to 'rpkid/rpki/irdb/zookeeper.py')
-rw-r--r--rpkid/rpki/irdb/zookeeper.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/rpkid/rpki/irdb/zookeeper.py b/rpkid/rpki/irdb/zookeeper.py
index 4816b40e..bc255186 100644
--- a/rpkid/rpki/irdb/zookeeper.py
+++ b/rpkid/rpki/irdb/zookeeper.py
@@ -885,6 +885,18 @@ class Zookeeper(object):
return call_rpkid(*pdus)
+ def run_rpkid_now(self):
+ """Poke rpkid to immediately run the cron job for the current handle.
+
+ This method is used by the gui when a user has changed something in the
+ IRDB (ghostbuster, roa) which does not require a full `synchronize()` call,
+ to force the object to be immediately issued.
+
+ """
+ self.call_rpkid(rpki.left_right.self_elt.make_pdu(
+ action = "set", self_handle = self.handle, run_now = "yes"))
+
+
def call_pubd(self, *pdus):
"""
Issue a call to pubd, return result.