Skip to content

Commit

Permalink
sweep: #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 cd7844f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/DIRAC/WorkloadManagementSystem/Agent/SiteDirector.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,14 @@ 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}")

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

# DIRAC Extensions to be used in pilots
Expand Down

0 comments on commit cd7844f

Please sign in to comment.