Skip to content

Commit

Permalink
Merge pull request DIRACGrid#7271 from fstagni/cherry-pick-2-1af93550…
Browse files Browse the repository at this point in the history
…b-integration

[sweep:integration] Preinstalled env pilot options in SiteDirector
  • Loading branch information
fstagni authored Nov 6, 2023
2 parents 59eaef9 + cd7844f commit 0b55787
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 0b55787

Please sign in to comment.