General housekeeping

This commit is contained in:
Lyncoln
2026-10-30 02:51:47 -04:00
parent f2df751294
commit fe2a54ca00
4 changed files with 3 additions and 19 deletions
-2
View File
@@ -2,8 +2,6 @@ import logging
from core.apirequest import executeRequest
from core.runtime.runtimecontract import buildRuntimeAttr, buildPreRuntimeAttr
#from core.runtime.stopsignals import addStopSignal
def buildAction (action, outputs):
action_log = True
@@ -27,16 +27,13 @@ def registerLifecycle(module, lifecycles):
mode = getattr(module, "mode")
lifecycles[module.name]["mode"] = mode
else:
lifecycles[module.name]["mode"] = {}
#else:
# lifecycles[module.name]["mode"] = "oneshot"
lifecycles[module.name]["mode"] = "oneshot"
if lifecycles[module.name]["mode"] == "continuous":
lifecycles[module.name]["refresh_rate"] = module.sleeptime
if lifecycles[module.name]["mode"] == {}:
lifecycles[module.name]["mode"] = "oneshot"
#if lifecycles[module.name]["mode"] == {}:
# lifecycles[module.name]["mode"] = "oneshot"
#lifecycles[module.name][registryname] = registryvalue
-4
View File
@@ -32,14 +32,10 @@ def buildListener(listener, self):
allow, status_code = buildFirewall(listener, outputs)
if allow:
#from core.execution.executioncontract import executeContract
from core.execution.createthread import buildThread
#Print allowed items for logging purposes
logging.info(outputs["firewall_allowed"])
#Process and forward to RMASS
#responses = executeContract(listener.execute, outputs)
thread = buildThread(listener.execute)