From e6d0fbf29964eecba23afeea0fe25256f094da0a Mon Sep 17 00:00:00 2001 From: Adrian Coveney Date: Thu, 5 Mar 2026 13:59:38 +0000 Subject: [PATCH] Remove Loader startup/shutdown as it's not needed We don't need to startup and shutdown the Loader as we're not running it as a Daemon. We're invoking its load_msg method and passing it a message to load directly. --- monitoring/validator/views.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/monitoring/validator/views.py b/monitoring/validator/views.py index 5b0fb64..cfd7282 100644 --- a/monitoring/validator/views.py +++ b/monitoring/validator/views.py @@ -141,12 +141,8 @@ def load(record: str) -> str: loader = Loader(qpath, record, db_backend, db_host, db_port, db_name, db_username, db_password, pidfile) - loader.startup() - loader.load_msg(record, signer) - loader.shutdown() - return("Record(s) will load successfully!") except (ApelDbException, InvalidRecordException, LoaderException, RecordFactoryException) as e: