Commit 36f1078d authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Changed the way we get the sge.project variable

parent 6f24a109
Pipeline #41451 passed with stage
in 4 minutes and 52 seconds
......@@ -37,12 +37,13 @@ class SGEIdiapJob(Job):
self,
*args,
queue=None,
project=rc['sge.project'],
project=rc.get("sge.project"),
resource_spec=None,
job_extra=None,
config_name="sge",
**kwargs,
):
if queue is None:
queue = dask.config.get("jobqueue.%s.queue" % config_name)
if project is None:
......@@ -206,7 +207,7 @@ class SGEMultipleQueuesCluster(JobQueueCluster):
env_extra=None,
sge_job_spec=QUEUE_DEFAULT,
min_jobs=10,
project=rc['sge.project'],
project=rc.get('sge.project'),
**kwargs,
):
......@@ -217,6 +218,7 @@ class SGEMultipleQueuesCluster(JobQueueCluster):
self.protocol = protocol
self.log_directory = log_directory
self.project = project
silence_logs = "error"
secutity = None
......@@ -224,6 +226,7 @@ class SGEMultipleQueuesCluster(JobQueueCluster):
host = None
security = None
if env_extra is None:
env_extra = []
elif not isinstance(env_extra, list):
......@@ -292,7 +295,7 @@ class SGEMultipleQueuesCluster(JobQueueCluster):
return {
"queue": queue,
"project": project,
"project": self.project,
"memory": _get_key_from_spec(job_spec, "memory"),
"cores": 1,
"processes": 1,
......
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