Skip to content
New issue

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

Derivation/resource-specific max-jobs #12454

Open
2 tasks done
hacker1024 opened this issue Feb 12, 2025 · 0 comments
Open
2 tasks done

Derivation/resource-specific max-jobs #12454

hacker1024 opened this issue Feb 12, 2025 · 0 comments
Labels
feature Feature request or proposal scheduling

Comments

@hacker1024
Copy link
Member

Is your feature request related to a problem?

Some derivations use limited hardware resources, such as KVM in NixOS tests.

It would be great if there was a way to limit the max-jobs used for derivations that require these resources, so that conflicts can be avoided.

Proposed solution

An derivation attribute could be added, containing a list of "resource names" that a derivation requires. Then, in nix-conf, the maximum number of concurrent builds for derivations that need each resource can be defined.

Alternative solutions

max-jobs can be set globally while building such derivations, but this prevents their dependencies from building concurrently too, which isn't ideal.

Additional context

Checklist


Add 👍 to issues you find important.

@hacker1024 hacker1024 added the feature Feature request or proposal label Feb 12, 2025
@roberth roberth added this to Nix team Feb 18, 2025
@github-project-automation github-project-automation bot moved this to To triage in Nix team Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request or proposal scheduling
Projects
Status: To triage
Development

No branches or pull requests

2 participants