Skip to content

Commit

Permalink
Actual test files
Browse files Browse the repository at this point in the history
  • Loading branch information
alinares authored and LinaresToine committed Mar 29, 2024
1 parent 7d0d928 commit 1c6b822
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class BaseModifier(object):
def __init__(self, config):
object.__init__(self)
self.backupPath = "./oldSandboxes"
self.tempFolder
#self.tempFolder --> not being used? Initialized as what?
self.sandboxPath = None
self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def changeSandbox(self, jobPKL, newMemory):
for task in workHelper.getAllTasks():
task.setMaxPSS(newMemory)

self.setWorkload(workload)
self.setWorkload(workload, jobPKL)

return

Expand All @@ -40,6 +40,7 @@ def changeJobPkl(self, pklFile, jobPKL, newMemory):
Modifies the pklFile job.pkl by changing the estimatedMemoryUsage to a new_memory value
"""
logging.info('MemoryModifier.changeJobPkl: Modifying {} job memory. Previous value: {}. New value: {}'.format(jobPKL['jobType'], jobPKL['estimatedMemoryUsage'], newMemory))
jobPKL['estimatedMemoryUsage'] = newMemory
self.savePKL(pklFile, jobPKL)

Expand Down Expand Up @@ -98,4 +99,5 @@ def modifyJob(self, job):
return

else:
logging.info('MemoryModifier.changeMemory called successfully')
self.changeMemory(job, settings)
1 change: 1 addition & 0 deletions src/python/WMComponent/RetryManager/RetryManagerPoller.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ def processRetries(self, jobs, cooloffType):

# Now we should have the jobs
propList = self.selectRetryAlgo(jobList, cooloffType)
logging.info('Now calling selectJobModifier')
propList = self.selectJobModifier(propList) #this propList has the modified jobs


Expand Down

0 comments on commit 1c6b822

Please sign in to comment.