Made some changes to jobs system to make it faster to respond when jobs created and change status.

This commit is contained in:
Michael Woods
2025-12-28 11:53:42 -05:00
parent e7d308ab69
commit d3e66f45b2
5 changed files with 62 additions and 10 deletions

View File

@@ -112,6 +112,7 @@ class Server:
if val in ['podman']:
logging.debug(f"Enabling {val} orchestrator")
self.orchestrator = get_orchestrator_from_config(conn.root.config['jobs_config'])
self.orchestrator.listeners.append(lambda : self.ping_job_queue())
self.app = pe.app.Application()
PacketServerConnection.receive_subscribers.append(lambda x: self.server_receiver(x))