A scheduling mechanism for hybrid flow shops with reworks under general queue time limits