VladaZakharova commented on code in PR #37598: URL: https://github.com/apache/airflow/pull/37598#discussion_r1499134149
########## airflow/providers/cncf/kubernetes/hooks/kubernetes.py: ########## @@ -502,6 +503,30 @@ def create_job( raise e return resp + def get_job(self, job_name: str, namespace: str) -> V1Job: + """Get Job of specified name from Google Cloud. + + :param job_name: Name of Job to fetch. + :param namespace: Namespace of the Job. + :return: Job object + """ + return self.batch_v1_client.read_namespaced_job(name=job_name, namespace=namespace, pretty=True) Review Comment: According to documentation, this parameter is indeed for outputting everything pretty :) https://github.com/kubernetes-client/python/blob/master/kubernetes/client/api/batch_v1_api.py#L2674 i have set this one to True, since i am using those api calls for output of the information -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org