From d7c428bfd9f1fa58a5e5fead608abaacb838869c Mon Sep 17 00:00:00 2001 From: chausman <chausman@nrao.edu> Date: Fri, 29 Jul 2022 09:12:14 -0600 Subject: [PATCH] make reacquire system not try to launch monitor processes for missing directories --- shared/workspaces/workspaces/workflow/services/recovery.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shared/workspaces/workspaces/workflow/services/recovery.py b/shared/workspaces/workspaces/workflow/services/recovery.py index f18f63825..6dbaa1c21 100644 --- a/shared/workspaces/workspaces/workflow/services/recovery.py +++ b/shared/workspaces/workspaces/workflow/services/recovery.py @@ -137,6 +137,7 @@ class MonitorRecover: f"Results directory {results_dir} for request #{wf_request.workflow_request_id} " f"is not a directory! Skipping." ) + # signal not a directory with current location return Path(".") @staticmethod @@ -148,7 +149,8 @@ class MonitorRecover: :param wf_request: The WorkflowRequest to update :return: """ - if logfile == Path.cwd(): + # because for some reason these are not the same.... + if logfile == Path.cwd() or logfile == Path("."): return logger.info("Running wf_monitor.") -- GitLab