schedule
Improve the `schedule` in the `Pipeline` class by introducing two optimizations: * Prune all the `ContainerDeclarations` that are not actually used. * Skip all tasks that have no outgoing elements that would have been written by them.