Skip to content

Commit

Permalink
Add example for events
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyvelich committed Jan 11, 2024
1 parent b2d9c36 commit cbaf066
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions sdk/python/kubeflow/training/api/training_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1048,10 +1048,19 @@ def get_job_logs(
Returns:
Dict[str, str]: A dictionary in which the keys are pod names and the
values are the corresponding logs.
Dict[str, str]: A dictionary in which the keys are Job and pod names and the
Dict[str, str]: A dictionary in which the keys are object kind and name, and the
values are list of the corresponding Kubernetes events with their timestamps. This
value is returned only if `verbose = True`.
value is returned only if `verbose = True`. For example:
```json
{
"PyTorchJob train-mnist": [
"2024-01-05 22:58:20 Created pod: train-mnist-worker-0"
],
"Pod train-mnist-worker-0": [
"2024-01-05 22:58:20 Created container init-pytorch"
]
}
```
Raises:
ValueError: Job replica type is invalid.
Expand Down

0 comments on commit cbaf066

Please sign in to comment.