We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
makeDerivationParallel is great for local parallelization in just one machine.
makeDerivationParallel
Many times, the next step for improving performance is distributing workloads into several machines.
A chunks builtin would be great for this:
chunks
{ chunks, inputs, makeDerivation, makeDerivationParallel, }: let numbers = [0 1 2 3 4 5 6 7 8 9]; myChunks = chunks numbers 3; # [[0 1 2 3] [4 5 6] [7 8 9]] buildNumber = n: makeDerivation { name = "build-number-${n}"; env.envNumber = n; builder = '' echo "$envNumber" touch "$out" ''; }; in makeDerivationParallel { dependencies = builtins.map buildNumber (inputs.nixpkgs.lib.lists.elemAt myChunks 0); name = "build-numbers-0"; }
With this logic one would be able to easily distribute workloads into several CI jobs, achieving distributed parallelization.
The text was updated successfully, but these errors were encountered:
Merge pull request #996 from dsalaza4/main
e09e125
feat(back): #995 new builtins
2454243
dsalaza4
No branches or pull requests
makeDerivationParallel
is great for local parallelization in just one machine.Many times, the next step for improving performance is distributing workloads into several machines.
A
chunks
builtin would be great for this:With this logic one would be able to easily distribute workloads into several CI jobs, achieving distributed parallelization.
The text was updated successfully, but these errors were encountered: