Commit d7c7ee3f authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

remove p.info

parent 7f3cf5bd
Pipeline #11682 passed with stage
...@@ -127,6 +127,13 @@ class Pipeline: ...@@ -127,6 +127,13 @@ class Pipeline:
self.task = {} self.task = {}
self.logger.info(f"task = {self.task}") self.logger.info(f"task = {self.task}")
# record basic information
self.logger.info(f"DOCKER_IMAGE={self.docker_image}")
self.logger.info(f"BUILD={self.build}")
self.logger.info(f"CREATED={self.created}")
self.logger.info(f"VERBOSE={self.verbose}")
self.logger.info(f"INTTEST={self.inttest}")
# warning operations # warning operations
@staticmethod @staticmethod
def filter_warnings(level: str = "ignore"): def filter_warnings(level: str = "ignore"):
...@@ -340,15 +347,6 @@ class Pipeline: ...@@ -340,15 +347,6 @@ class Pipeline:
f"Invalid ref_cat: {task_ref_cat} not in {self.dfs1.catalog.all_catalog_names}" f"Invalid ref_cat: {task_ref_cat} not in {self.dfs1.catalog.all_catalog_names}"
) )
# automatically log pipeline information
def info(self):
"""Return pipeline information."""
self.logger.info(f"DOCKER_IMAGE={self.docker_image}")
self.logger.info(f"BUILD={self.build}")
self.logger.info(f"CREATED={self.created}")
self.logger.info(f"VERBOSE={self.verbose}")
self.logger.info(f"INTTEST={self.inttest}")
def exit(self, reason: str = None): def exit(self, reason: str = None):
"""Exit pipeline with reason. """Exit pipeline with reason.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment