Commit 2bdc8832 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Changed some scheduler defaults AND temporally added biometric as a default for the SGE -P option

parent 0ad6764c
Pipeline #41029 passed with stage
in 8 minutes and 37 seconds
......@@ -37,7 +37,7 @@ class SGEIdiapJob(Job):
self,
*args,
queue=None,
project=None,
project="biometric",
resource_spec=None,
job_extra=None,
config_name="sge",
......@@ -278,6 +278,7 @@ class SGEMultipleQueuesCluster(JobQueueCluster):
"io_big=TRUE," if "io_big" in job_spec and job_spec["io_big"] else ""
)
memory = _get_key_from_spec(job_spec, "memory")[:-1]
new_resource_spec += (f"mem_free={memory},")
......@@ -289,7 +290,7 @@ class SGEMultipleQueuesCluster(JobQueueCluster):
return {
"queue": queue,
"memory": "0",
"memory": _get_key_from_spec(job_spec, "memory"),
"cores": 1,
"processes": 1,
"log_directory": self.log_directory,
......@@ -445,9 +446,9 @@ class SchedulerResourceRestriction(Scheduler):
def __init__(self, *args, **kwargs):
super(SchedulerResourceRestriction, self).__init__(
idle_timeout=3600,
allowed_failures=500,
synchronize_worker_interval="240s",
idle_timeout=60,
allowed_failures=100,
synchronize_worker_interval="60s",
*args,
**kwargs,
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment