Skip to content

Commit cd7844f

Browse files
atsaregfstagni
authored andcommitted
sweep: #7266 Preinstalled env pilot options in SiteDirector
1 parent e87844d commit cd7844f

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)