New quilt API for dynamically setting the role per task