Skip to content

Commit

Permalink
fix(Job): add SoftwareDistModule if it is set in the ConfigurationSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
andresailer committed Mar 1, 2024
1 parent cfcc8a7 commit d594306
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 d594306

Please sign in to comment.