Skip to content

Commit

Permalink
Merge pull request #7495 from andresailer/8_fixSDM
Browse files Browse the repository at this point in the history
[8.0] fix(Job): add SoftwareDistModule if it is set in the ConfigurationSystem
  • Loading branch information
fstagni authored Mar 4, 2024
2 parents cfcc8a7 + d594306 commit dbde8be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/DIRAC/WorkloadManagementSystem/DB/JobDBUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ def checkAndPrepareJob(jobID, classAdJob, classAdReq, owner, ownerDN, ownerGroup
if inputDataPolicy and not classAdJob.lookupAttribute("InputDataModule"):
classAdJob.insertAttributeString("InputDataModule", inputDataPolicy)

softwareDistModule = Operations(vo=vo).getValue("SoftwareDistModule")
if softwareDistModule and not classAdJob.lookupAttribute("SoftwareDistModule"):
classAdJob.insertAttributeString("SoftwareDistModule", softwareDistModule)

# priority
priority = classAdJob.getAttributeInt("Priority")
if priority is None:
Expand Down

0 comments on commit dbde8be

Please sign in to comment.