Batch

Despite being smart at task schedling and caching, Terrabuild can’t beat compiler supports when doing batch build.

For example, .net is able to build a whole solution and optimize how to restore and build. But for that, you need to build and maintain a solution file. Also, then you can’t build a subset of this solution file.

To have the best of both worlds, Terrabuild supports batch builds and delegate the build to dedicated commands. To support this feature, clusters are created from the build graph as long as:

  • all commands used in a target do support batch
  • commands are exactly the same
  • targets are part of the same dependency chain

Once clusters are identified, Terrabuild asks extensions to craft dedicated commands. This way you do not need to maintain a solution file and you can benefit faster builds transparently.

ℹ️
Batch support must be enable per extension using the batch attribute on extensions.
Last updated on