def execute_postamble(self, context, output): self.logger.info('Done.') duration = format_duration(output.info.duration) self.logger.info('Run duration: {}'.format(duration)) num_ran = context.run_state.num_completed_jobs status_summary = 'Ran a total of {} iterations: '.format(num_ran) counter = context.run_state.get_status_counts() parts = [] for status in reversed(Status.levels): if status in counter: parts.append('{} {}'.format(counter[status], status)) self.logger.info('{}{}'.format(status_summary, ', '.join(parts))) self.logger.info('Results can be found in {}'.format(output.basepath)) if self.error_logged: self.logger.warning('There were errors during execution.') self.logger.warning('Please see {}'.format(output.logfile)) elif self.warning_logged: self.logger.warning('There were warnings during execution.') self.logger.warning('Please see {}'.format(output.logfile))
def execute_postamble(self, context, output): self.logger.info('Done.') duration = format_duration(output.info.duration) self.logger.info('Run duration: {}'.format(duration)) num_ran = context.run_state.num_completed_jobs status_summary = 'Ran a total of {} iterations: '.format(num_ran) counter = context.run_state.get_status_counts() parts = [] for status in reversed(Status.levels): if status in counter: parts.append('{} {}'.format(counter[status], status)) self.logger.info(status_summary + ', '.join(parts)) self.logger.info('Results can be found in {}'.format(output.basepath)) if self.error_logged: self.logger.warning('There were errors during execution.') self.logger.warning('Please see {}'.format(output.logfile)) elif self.warning_logged: self.logger.warning('There were warnings during execution.') self.logger.warning('Please see {}'.format(output.logfile))