Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.pipelines
Commits
b138e8f3
Commit
b138e8f3
authored
Nov 30, 2021
by
Tiago de Freitas Pereira
Browse files
Fixing compatibility issues
parent
75291a69
Pipeline
#56679
passed with stage
in 12 minutes and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/pipelines/distributed/sge.py
View file @
b138e8f3
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment