Feedback scheduling for pipelines of tasks