[scheduling] Remove nodes for completed tasks from flow graph.
General pass fixing lint warnings.