Skip to content

Commit

Permalink
Added check to parseargs for restart flag to only accept if a restart…
Browse files Browse the repository at this point in the history
… is possible
  • Loading branch information
Nathan Lee committed Nov 29, 2019
1 parent 0b82241 commit 2c0d406
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pyrunner/core/pyrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,8 @@ def parse_args(self):
elif opt in ['-n', '--max-procs']:
self.config['max_procs'] = int(arg)
elif opt in ['-r', '--restart']:
self._init_params['restart'] = True
if os.path.isfile(self.config.ctllog_file):
self._init_params['restart'] = True
elif opt in ['-x', '--exec-only']:
self._init_params['exec_only_list'] = [ int(id) for id in arg.split(',') ]
elif opt in ['-N', '--norun']:
Expand Down
2 changes: 1 addition & 1 deletion pyrunner/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '4.0.2'
__version__ = '4.0.3'

0 comments on commit 2c0d406

Please sign in to comment.