Hide Forgot
Description of problem: dead recipes routine is processing the same recipe over and over. Something is wrong with the query. Version-Release number of selected component (if applicable): 0.8.0 Additional info: 2012-01-12 11:34:21,070 beakerd INFO R:378134 does not have a valid distro, aborting. 2012-01-12 11:34:21,309 beakerd INFO R:378134 does not have a valid distro, aborting. 2012-01-12 11:34:21,563 beakerd INFO R:378134 does not have a valid distro, aborting. 2012-01-12 11:34:21,838 beakerd INFO R:378134 does not have a valid distro, aborting. 2012-01-12 11:34:22,169 beakerd INFO R:378134 does not have a valid distro, aborting. 2012-01-12 11:34:22,436 beakerd INFO R:378134 does not have a valid distro, aborting. 2012-01-12 11:34:22,709 beakerd INFO R:378134 does not have a valid distro, aborting. 2012-01-12 11:34:22,979 beakerd INFO R:378134 does not have a valid distro, aborting. def dead_recipes(*args): recipes = Recipe.query\ .join('status')\ .outerjoin(['systems'])\ .outerjoin(['distro', 'lab_controller_assocs', 'lab_controller'])\ .filter( or_( and_(Recipe.status==TaskStatus.by_name(u'Queued'), System.id==None, ), and_(Recipe.status==TaskStatus.by_name(u'Queued'), LabController.id==None, ), ) ) if not recipes.count(): return False log.debug("Entering dead_recipes routine") for recipe_id, in recipes.values(Recipe.id):
fix pushed to gerrit for review