Skip to content
Snippets Groups Projects
Commit 3ef187c3 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Merge branch 'issue-37' into 'master'

Fixing compatibility issues with dask_jobqueue=0.7.2

Closes #37

See merge request !79
parents 75291a69 b138e8f3
No related branches found
No related tags found
1 merge request!79Fixing compatibility issues with dask_jobqueue=0.7.2
Pipeline #56681 passed with warnings
......@@ -54,13 +54,20 @@ class SGEIdiapJob(Job):
if job_extra is None:
job_extra = dask.config.get("jobqueue.%s.job-extra" % config_name)
# Resources
resources = None
if "resources" in kwargs or kwargs["resources"]:
resources = kwargs.pop("resources")
super().__init__(
*args, config_name=config_name, death_timeout=10000, **kwargs
)
# Amending the --resources in the `distributed.cli.dask_worker` CLI command
if "resources" in kwargs and kwargs["resources"]:
resources = kwargs["resources"]
# if "resources" in kwargs and kwargs["resources"]:
if not resources:
# resources = kwargs["resources"]
# Preparing the string to be sent to `dask-worker` command
def _resource_to_str(resources):
......@@ -292,6 +299,7 @@ class SGEMultipleQueuesCluster(JobQueueCluster):
)
max_jobs = get_max_jobs(sge_job_spec)
self.scale(max_jobs)
# Adapting to minimim 1 job to maximum 48 jobs
# interval: Milliseconds between checks from the scheduler
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment