Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.pipelines
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.pipelines
Commits
3ef187c3
Commit
3ef187c3
authored
3 years ago
by
Tiago de Freitas Pereira
Browse files
Options
Downloads
Plain Diff
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
!79
Fixing compatibility issues with dask_jobqueue=0.7.2
Pipeline
#56681
passed with warnings
3 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/pipelines/distributed/sge.py
+10
-2
10 additions, 2 deletions
bob/pipelines/distributed/sge.py
with
10 additions
and
2 deletions
bob/pipelines/distributed/sge.py
+
10
−
2
View file @
3ef187c3
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment