def setup(self, context): self.logger.info('Any setup required by your workload should be done now.') self.logger.info('As soon as you are done hit any key and wait for the message') self.logger.info('"START NOW!" to begin your manual workload.') self.logger.info('') self.logger.info('hit any key to finalize your setup...') getch()
def setup(self, context): self.logger.info( 'Any setup required by your workload should be done now.') self.logger.info( 'As soon as you are done hit any key and wait for the message') self.logger.info('"START NOW!" to begin your manual workload.') self.logger.info('') self.logger.info('hit any key to finalize your setup...') getch()
def run(self, context): self.logger.info('START NOW!') if self.duration: time.sleep(self.duration) elif self.user_triggered: self.logger.info('') self.logger.info('hit any key to end your workload execution...') getch() else: raise ConfigError('Illegal parameters for manual workload') self.logger.info('DONE! your results are now being collected!')