Skip to content

Commit

Permalink
feat: added preinstalledEnv and preinstalledEnvPrefix pilot options
Browse files Browse the repository at this point in the history
  • Loading branch information
atsareg committed Nov 1, 2023
1 parent 52e77c5 commit ce2e6c5
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 @@ -1024,6 +1024,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 preinstalledEnvPrefix:
pilotOptions.append(f"--preinstalledEnvPrefix={preinstalledEnvPrefix}")
elif preinstalledEnv:
pilotOptions.append(f"--preinstalledEnv={preinstalledEnv}")

# Pilot Logging defined?
if opsHelper.getValue("/Services/JobMonitoring/usePilotsLoggingFlag", False):
pilotOptions.append("-z ")
Expand Down

0 comments on commit ce2e6c5

Please sign in to comment.