Revert "Revert "explicitly set the degree of parallelism""

This reverts commit 0f6e91cf857a18207e247b3ffe4f73d30c1cc46c.