Skip to content

Commit

Permalink
sweep: DIRACGrid#7266 Preinstalled env pilot options in SiteDirector
Browse files Browse the repository at this point in the history
  • Loading branch information
atsareg authored and fstagni committed Nov 6, 2023
1 parent e87844d commit 790f7c5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/DIRAC/WorkloadManagementSystem/Agent/SiteDirector.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,18 @@ def _getPilotOptions(self, queue, **kwargs):
else:
self.log.info("DIRAC project will be installed by pilots")

# Preinstalled environment defined ?
preinstalledEnv = opsHelper.getValue("Pilot/PreinstalledEnv", "")
preinstalledEnvPrefix = opsHelper.getValue("Pilot/PreinstalledEnvPrefix", "")
if preinstalledEnv:
pilotOptions.append(f"--preinstalledEnv={preinstalledEnv}")
elif preinstalledEnvPrefix:
pilotOptions.append(f"--preinstalledEnvPrefix={preinstalledEnvPrefix}")

# Pilot Logging defined?
if opsHelper.getValue("/Services/JobMonitoring/usePilotsLoggingFlag", False):
pilotOptions.append("-z ")

pilotOptions.append("--pythonVersion=3")

# DIRAC Extensions to be used in pilots
Expand Down

0 comments on commit 790f7c5

Please sign in to comment.