@@ -1866,30 +1866,6 @@ def expand_role(self, role):
18661866 return role
18671867 return self .boto_session .resource ("iam" ).Role (role ).arn
18681868
1869-
1870- def logs_for_job (self , job_name , wait = False , poll = 10 , log_type = "All" , timeout = None ):
1871- """Display logs for a given training job, optionally tailing them until job is complete.
1872-
1873- If the output is a tty or a Jupyter cell, it will be color-coded
1874- based on which instance the log entry is from.
1875-
1876- Args:
1877- job_name (str): Name of the training job to display the logs for.
1878- wait (bool): Whether to keep looking for new log entries until the job completes
1879- (default: False).
1880- poll (int): The interval in seconds between polling for new log entries and job
1881- completion (default: 5).
1882- log_type ([str]): A list of strings specifying which logs to print. Acceptable
1883- strings are "All", "None", "Training", or "Rules". To maintain backwards
1884- compatibility, boolean values are also accepted and converted to strings.
1885- timeout (int): Timeout in seconds to wait until the job is completed. ``None`` by
1886- default.
1887- Raises:
1888- exceptions.CapacityError: If the training job fails with CapacityError.
1889- exceptions.UnexpectedStatusException: If waiting and the training job fails.
1890- """
1891- _logs_for_job (self , job_name , wait , poll , log_type , timeout )
1892-
18931869
18941870def _expand_container_def (c_def ):
18951871 """Placeholder docstring"""
0 commit comments