def watch_brew_task(self, task_id): """Keep watching progress of brew task :param string task_id: The Task ID to be watched :return: string with an error if an error happens, None otherwise """ return brew.watch_task(self.runtime.group_config.urls.brewhub, logger.info, task_id, threading.Event())
def watch_brew_task(self, task_id): """Keep watching progress of brew task :param string task_id: The Task ID to be watched :return: string with an error if an error happens, None otherwise """ return brew.watch_task( self.runtime.build_retrying_koji_client(), logger.info, task_id, threading.Event() )
def watch_bundle_container_build(self): """Log brew task URL and eventual task states until task completion (or failure) :return bool True if brew task was successfully completed, False otherwise """ self.runtime.logger.info('Build running: {}'.format(self.task_url)) error = brew.watch_task(self.runtime.build_retrying_koji_client(), self.runtime.logger.info, self.task_id, threading.Event()) if error: self.runtime.logger.info(error) return False return True
def watch_bundle_container_build(self, task_id): """Log brew task URL and eventual task states until task completion (or failure) :return bool True if brew task was successfully completed, False otherwise """ if self.dry_run: self.runtime.logger.warning( "[DRY RUN] Would have watched bundle container build task: %d", task_id) return True error = brew.watch_task(self.brew_session, self.runtime.logger.info, task_id, threading.Event()) if error: self.runtime.logger.info(error) return False return True