Skip to content

Commit

Permalink
Fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
gibchikafa committed Nov 10, 2023
1 parent 33d0485 commit b559340
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion python/hopsworks/engine/execution_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ def __init__(self, project_id=None):

def download_logs(self, execution, path=None):
"""Download execution logs to current directory
:param path: path to download the logs
:param execution: execution to download logs for
:type execution: Execution
:param path: path to download the logs
:type path: str
:return: downloaded stdout and stderr log path
:rtype: str, str
:raises: JobExecutionException if path is provided but does not exist
Expand Down
4 changes: 3 additions & 1 deletion python/hopsworks/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ def success(self):

def download_logs(self, path=None):
"""Download stdout and stderr logs for the execution
Example for downloading and printing the logs
```python
Expand All @@ -195,6 +194,9 @@ def download_logs(self, path=None):
print(err_fd.read())
```
# Arguments
path: path to download the logs. must be `str`
# Returns
`str`. Path to downloaded log for stdout.
`str`. Path to downloaded log for stderr.
Expand Down

0 comments on commit b559340

Please sign in to comment.