Skip to content

Commit

Permalink
remove old param tag
Browse files Browse the repository at this point in the history
  • Loading branch information
vreuter committed Mar 21, 2019
1 parent d2061b7 commit 24be3c3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pypiper/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,7 @@ def run(self, cmd, target=None, lock_name=None, shell=None, nofail=False, clean=
a process, default False; nofail can be used to implement
non-essential parts of the pipeline; if a 'nofail' command fails,
the pipeline is free to continue execution.
:param str errmsg: Message to print if there's an error.
:param bool clean: True means the target file will be automatically added
:param bool clean: True means the target file will be automatically added
to an auto cleanup list. Optional.
:param callable follow: Function to call after executing (each) command.
:param str container: Name for Docker container in which to run commands.
Expand Down Expand Up @@ -1891,7 +1890,6 @@ def _cleanup(self, dry_run=False):
if no_cleanup_script:
print('\n\nCould not produce cleanup script for item(s):\n\n- ' + '\n- '.join(no_cleanup_script))


def _memory_usage(self, pid='self', category="hwm", container=None):
"""
Memory usage of the process in kilobytes.
Expand Down Expand Up @@ -1924,7 +1922,6 @@ def _memory_usage(self, pid='self', category="hwm", container=None):
# Thanks Martin Geisler:
status = None
result = {'peak': 0, 'rss': 0, 'hwm': 0}


try:
# This will only work on systems with a /proc file system
Expand All @@ -1946,7 +1943,6 @@ def _memory_usage(self, pid='self', category="hwm", container=None):
# print(result[category])
return result[category]


def _triage_error(self, e, nofail, errmsg=None):
""" Print a message and decide what to do about an error. """
if errmsg is not None:
Expand Down

0 comments on commit 24be3c3

Please sign in to comment.