flat-zoo-31952
02/03/2022, 10:39 PM./pants
too? Like this:
renice 19 $(cat .pids/**/pid)
nice ./pants ...
Does this make sense or am I thinking about this all wrong?flat-zoo-31952
02/03/2022, 10:40 PMnice ./pants
๐fast-nail-55400
02/03/2022, 10:45 PMflat-zoo-31952
02/03/2022, 10:49 PMflat-zoo-31952
02/03/2022, 10:50 PMwitty-crayon-22786
02/03/2022, 10:56 PMflat-zoo-31952
02/04/2022, 2:56 PMflat-zoo-31952
02/04/2022, 2:57 PMfast-nail-55400
02/04/2022, 3:32 PM--subprocess-environment-priority=...
), thread it through into the local execution runner in Rust (there are several PRs that serve as examples), and then invoke the correct API from the libc crate to set the nice value (probably using https://doc.rust-lang.org/std/os/unix/process/trait.CommandExt.html#tymethod.pre_exec on the Command
and setpriority
https://docs.rs/libc/0.2.117/libc/fn.setpriority.html)