Skip to content

Commit 0b55787

Browse files
authored
Merge pull request #7271 from fstagni/cherry-pick-2-1af93550b-integration
[sweep:integration] Preinstalled env pilot options in SiteDirector
2 parents 59eaef9 + cd7844f commit 0b55787

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/DIRAC/WorkloadManagementSystem/Agent/SiteDirector.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,14 @@ def _getPilotOptions(self, queue, **kwargs):
10221022
else:
10231023
self.log.info("DIRAC project will be installed by pilots")
10241024

1025+
# Preinstalled environment defined ?
1026+
preinstalledEnv = opsHelper.getValue("Pilot/PreinstalledEnv", "")
1027+
preinstalledEnvPrefix = opsHelper.getValue("Pilot/PreinstalledEnvPrefix", "")
1028+
if preinstalledEnv:
1029+
pilotOptions.append(f"--preinstalledEnv={preinstalledEnv}")
1030+
elif preinstalledEnvPrefix:
1031+
pilotOptions.append(f"--preinstalledEnvPrefix={preinstalledEnvPrefix}")
1032+
10251033
pilotOptions.append("--pythonVersion=3")
10261034

10271035
# DIRAC Extensions to be used in pilots

0 commit comments

Comments
 (0)