added support for batch partitioning to jobgraphbuilder