From fde214d776b3956c42234ef4bc9831b09e07616f Mon Sep 17 00:00:00 2001 From: AymenFJA Date: Mon, 30 Oct 2023 18:41:58 -0400 Subject: [PATCH] optionally set agent sandbox location via env var to reduce tests zipped files --- parsl/executors/radical/executor.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/parsl/executors/radical/executor.py b/parsl/executors/radical/executor.py index 64d2f1b47f..00f90bba11 100644 --- a/parsl/executors/radical/executor.py +++ b/parsl/executors/radical/executor.py @@ -26,9 +26,7 @@ RPEX = 'RPEX' BASH = 'bash' PYTHON = 'python' - os.environ["RADICAL_REPORT"] = "False" -os.environ["RADICAL_LOG_LVL"] = "DEBUG" logger = logging.getLogger(__name__) @@ -195,9 +193,14 @@ def start(self): 'resource': self.resource, 'access_schema': self.access_schema} - # move the agent sandbox in the workdir mainly for tests purposes if not self.resource or 'local' in self.resource: - pd_init['sandbox'] = self.run_dir + # move the agent sandbox to the workdir mainly + # for debugging purposes. This will allow parsl + # to include the agent sandbox with the ci artifacts. + if os.environ.get("LOCAL_SANDBOX"): + pd_init['sandbox'] = self.run_dir + os.environ["RADICAL_LOG_LVL"] = "DEBUG" + logger.info("RPEX will be running in the local mode") pd = rp.PilotDescription(pd_init)