Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
jflow
Commits
de5c3aa0
Commit
de5c3aa0
authored
May 05, 2014
by
Jerome Mariette
Browse files
add an option to limit the number of job to submit in parallel
parent
5c5c398e
Changes
3
Hide whitespace changes
Inline
Side-by-side
application.properties
View file @
de5c3aa0
...
...
@@ -21,6 +21,8 @@
batch_system_type
=
local
# add these options to all batch submit files
batch_options
=
# add these options to limit the number of jobs sumitted in parallel
limit_submission = 100
# on which socket host should run the web server
server_socket_host
=
127.0.0.1
# on which socket port should run the web server
...
...
src/jflow/config_reader.py
View file @
de5c3aa0
...
...
@@ -76,7 +76,8 @@ class JFlowConfigReader(object):
try
:
type
=
self
.
reader
.
get
(
"global"
,
"batch_system_type"
)
options
=
self
.
reader
.
get
(
"global"
,
"batch_options"
)
return
[
type
,
options
]
limit_submission
=
self
.
reader
.
get
(
"global"
,
"limit_submission"
)
return
[
type
,
options
,
limit_submission
]
except
NoOptionError
,
e
:
return
None
...
...
src/jflow/workflow.py
View file @
de5c3aa0
...
...
@@ -84,7 +84,8 @@ class Workflow(threading.Thread):
self
.
component_nameids
=
{}
# try to parse engine arguments
try
:
type
,
options
=
self
.
jflow_config_reader
.
get_batch
()
type
,
options
,
limit_submission
=
self
.
jflow_config_reader
.
get_batch
()
if
limit_submission
:
self
.
engine_arguments
+=
' -J '
+
str
(
limit_submission
)
if
type
:
self
.
engine_arguments
+=
' -T '
+
type
if
options
:
self
.
engine_arguments
+=
' -B "'
+
options
+
'"'
except
:
self
.
engine_arguments
=
None
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment