def end(self, success: bool, exception=None): self.info.end_time = str(datetime.datetime.now()) self.info.elapsed_time = str(Timer.get_elapsed_time()) self.info.success = success if exception: self.exception_str = str(exception)