From ae4a20d4497e627fd0a02e28a9ef7ab0a46a67de Mon Sep 17 00:00:00 2001 From: Pierre Lasorak Date: Mon, 11 Nov 2024 11:55:25 +0100 Subject: [PATCH 1/2] move import out of the way --- src/drunc/process_manager/process_manager_driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drunc/process_manager/process_manager_driver.py b/src/drunc/process_manager/process_manager_driver.py index 34760f19..cb41232e 100644 --- a/src/drunc/process_manager/process_manager_driver.py +++ b/src/drunc/process_manager/process_manager_driver.py @@ -12,7 +12,6 @@ from drunc.exceptions import DruncSetupException, DruncShellException -from daqconf.consolidate import consolidate_db class ProcessManagerDriver(GRPCDriver): controller_address = '' @@ -157,6 +156,7 @@ async def boot( f.seek(0) fname = f.name try: + from daqconf.consolidate import consolidate_db consolidate_db(oks_conf, f"{fname}") except Exception as e: log.critical(f'''\nInvalid configuration passed (cannot consolidate your configuration). To debug it, close drunc and run the following command: From 9d7e1ebb8b80e7830be7c38f3500600cb16e7635 Mon Sep 17 00:00:00 2001 From: Pierre Lasorak Date: Mon, 11 Nov 2024 12:17:37 +0100 Subject: [PATCH 2/2] amend the error message --- src/drunc/process_manager/process_manager_driver.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/drunc/process_manager/process_manager_driver.py b/src/drunc/process_manager/process_manager_driver.py index cb41232e..30f83416 100644 --- a/src/drunc/process_manager/process_manager_driver.py +++ b/src/drunc/process_manager/process_manager_driver.py @@ -159,7 +159,9 @@ async def boot( from daqconf.consolidate import consolidate_db consolidate_db(oks_conf, f"{fname}") except Exception as e: - log.critical(f'''\nInvalid configuration passed (cannot consolidate your configuration). To debug it, close drunc and run the following command: + log.critical(f'''\nInvalid configuration passed (cannot consolidate your configuration) +{e} +To debug it, close drunc and run the following command: [yellow]oks_dump --files-only {oks_conf}[/]