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
36f1078d
Commit
36f1078d
authored
4 years ago
by
Tiago de Freitas Pereira
Browse files
Options
Downloads
Patches
Plain Diff
Changed the way we get the sge.project variable
parent
6f24a109
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!34
Project variable
Pipeline
#41451
passed
4 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/pipelines/distributed/sge.py
+6
-3
6 additions, 3 deletions
bob/pipelines/distributed/sge.py
with
6 additions
and
3 deletions
bob/pipelines/distributed/sge.py
+
6
−
3
View file @
36f1078d
...
...
@@ -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,
...
...
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