Skip to content

Commit ce2e6c5

Browse files
committed
feat: added preinstalledEnv and preinstalledEnvPrefix pilot options
1 parent 52e77c5 commit ce2e6c5

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
@@ -1024,6 +1024,14 @@ def _getPilotOptions(self, queue, **kwargs):
10241024
else:
10251025
self.log.info("DIRAC project will be installed by pilots")
10261026

1027+
# Preinstalled environment defined ?
1028+
preinstalledEnv = opsHelper.getValue("Pilot/PreinstalledEnv", "")
1029+
preinstalledEnvPrefix = opsHelper.getValue("Pilot/PreinstalledEnvPrefix", "")
1030+
if preinstalledEnvPrefix:
1031+
pilotOptions.append(f"--preinstalledEnvPrefix={preinstalledEnvPrefix}")
1032+
elif preinstalledEnv:
1033+
pilotOptions.append(f"--preinstalledEnv={preinstalledEnv}")
1034+
10271035
# Pilot Logging defined?
10281036
if opsHelper.getValue("/Services/JobMonitoring/usePilotsLoggingFlag", False):
10291037
pilotOptions.append("-z ")

0 commit comments

Comments
 (0)