Skip to content

Commit

Permalink
optionally set agent sandbox location via env var to reduce tests zip…
Browse files Browse the repository at this point in the history
…ped files
  • Loading branch information
AymenFJA committed Oct 30, 2023
1 parent 8cc028f commit fde214d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions parsl/executors/radical/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit fde214d

Please sign in to comment.