Skip to content

Commit

Permalink
sweep: DIRACGrid#7495 fix(Job): add SoftwareDistModule if it is set i…
Browse files Browse the repository at this point in the history
…n the ConfigurationSystem
  • Loading branch information
andresailer authored and web-flow committed Mar 4, 2024
1 parent 3856af9 commit 0acb5fb
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 @@ -93,6 +93,10 @@ def checkAndPrepareJob(jobID, classAdJob, classAdReq, owner, ownerGroup, jobAttr
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 0acb5fb

Please sign in to comment.