Skip to content

Commit 0f78274

Browse files
committed
Pass on the oarsub args
Previously, the arguments supposed to be passed onto the oarsub command just were discarded. Now they are correctly passed to the command such that one can for example set higher wall times or restrict job submission to a certain subset of nodes etc
1 parent d410fbb commit 0f78274

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nipype/pipeline/plugins/oar.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ def __init__(self, **kwargs):
3737
self._max_tries = 2
3838
self._max_jobname_length = 15
3939
if 'plugin_args' in kwargs and kwargs['plugin_args']:
40+
if 'oarsub_args' in kwargs['plugin_args']:
41+
self._oarsub_args = kwargs['plugin_args']['oarsub_args']
4042
if 'retry_timeout' in kwargs['plugin_args']:
4143
self._retry_timeout = kwargs['plugin_args']['retry_timeout']
4244
if 'max_tries' in kwargs['plugin_args']:

0 commit comments

Comments
 (0)