Skip to content
Snippets Groups Projects
Commit c84aa424 authored by Jan David Mol's avatar Jan David Mol
Browse files

Fix nrCoresPerTask to 21, since the user or MoM not specify it correctly in...

Fix nrCoresPerTask to 21, since the user or MoM not specify it correctly in all cases, and we want to use full nodes for now anyway.
parent e78e0fd2
No related branches found
No related tags found
No related merge requests found
......@@ -143,10 +143,10 @@ class Parset(dict):
return result
def processingNumberOfCoresPerTask(self):
result = int(self[PARSET_PREFIX + "Observation.Cluster.ProcessingCluster.numberOfCoresPerTask"]) or "20"
if result < 1 or result > 20:
logger.warn('Invalid Observation.Cluster.ProcessingCluster.numberOfCoresPerTask: %s, defaulting to %s', result, max(1, min(20, result)))
return max(1, min(20, result))
result = int(self[PARSET_PREFIX + "Observation.Cluster.ProcessingCluster.numberOfCoresPerTask"]) or "21"
if result != 21:
logger.warn('Invalid Observation.Cluster.ProcessingCluster.numberOfCoresPerTask: %s, defaulting to %s', result, 21)
return 21
def processingNumberOfTasks(self):
""" Parse the number of nodes to allocate from "Observation.Cluster.ProcessingCluster.numberOfTasks",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment