Commit ef896593 by Czémán Arnold

firewall: fix taskreload calling

parent dc2a3c46
...@@ -107,6 +107,6 @@ def reloadtask(type='Host', timeout=15, sync=False): ...@@ -107,6 +107,6 @@ def reloadtask(type='Host', timeout=15, sync=False):
logger.info("Reload %s on next periodic iteration applying change to %s.", logger.info("Reload %s on next periodic iteration applying change to %s.",
", ".join(reload), type) ", ".join(reload), type)
if all([cache.add("%s_lock" % i, 'true', 30) for i in reload]): if all([cache.add("%s_lock" % i, 'true', 30) for i in reload]):
res=reloadtask_worker.apply_async((sync,),queue='localhost.man', countdown=5) res=reloadtask_worker.apply_async(queue='localhost.man', countdown=5)
if sync: if sync:
res.get(15) res.get(15)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment