Join Slack
Powered by
Can I limit pants to use 1 core less than the numb...
# development
m
melodic-thailand-99227
06/02/2022, 12:36 PM
Can I limit pants to use 1 core less than the number of cores available? Currently it DoSes the supporting containers (postgres)
c
curved-television-6568
06/02/2022, 12:39 PM
You have these options, which may be relevant here:
https://www.pantsbuild.org/docs/reference-global#section-process-execution-local-parallelism
https://www.pantsbuild.org/docs/reference-global#section-rule-threads-core
h
happy-kitchen-89482
06/05/2022, 7:44 AM
Ah but these require setting to a specific number, I guess Yoav is asking for a dynamically computed "#cores-1" ? There is no such way today, but it would be pretty easy to add.
👍 1
Open in Slack
Previous
Next