Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
D-GENIES
Commits
003c20cf
Commit
003c20cf
authored
Apr 09, 2018
by
Floreal Cabanettes
Browse files
Fix submit jobs cluster prepare
parent
8e62fecd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dgenies/lib/job_manager.py
View file @
003c20cf
...
...
@@ -356,22 +356,25 @@ class JobManager:
jt
.
outputPath
=
":"
+
log_out
jt
.
errorPath
=
":"
+
log_err
memory
=
self
.
config
.
cluster_memory
if
self
.
query
is
None
:
memory
=
self
.
config
.
cluster_memory_ava
if
memory
>
32
:
name
,
order
,
contigs
,
reversed_c
,
abs_start
,
c_len
=
Index
.
load
(
self
.
idx_t
,
False
)
if
c_len
<=
500000000
:
memory
=
32
if
memory
>
self
.
tool
.
max_memory
:
memory
=
self
.
tool
.
max_memory
if
step
==
"start"
:
memory
=
self
.
config
.
cluster_memory
if
self
.
query
is
None
:
memory
=
self
.
config
.
cluster_memory_ava
if
memory
>
32
:
name
,
order
,
contigs
,
reversed_c
,
abs_start
,
c_len
=
Index
.
load
(
self
.
idx_t
,
False
)
if
c_len
<=
500000000
:
memory
=
32
if
memory
>
self
.
tool
.
max_memory
:
memory
=
self
.
tool
.
max_memory
else
:
memory
=
8000
native_specs
=
self
.
config
.
drmaa_native_specs
if
batch_system_type
==
"slurm"
:
if
native_specs
==
"###DEFAULT###"
:
native_specs
=
"--mem-per-cpu={0} --ntasks={1} --time={2}"
if
step
==
"prepare"
:
jt
.
nativeSpecification
=
native_specs
.
format
(
8000
,
1
,
"02:00:00"
)
jt
.
nativeSpecification
=
native_specs
.
format
(
memory
,
1
,
"02:00:00"
)
elif
step
==
"start"
:
jt
.
nativeSpecification
=
native_specs
.
format
(
memory
//
self
.
tool
.
threads_cluster
*
1000
,
self
.
tool
.
threads_cluster
,
"02:00:00"
)
...
...
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