guix-cuirass/src
Ludovic Courtès 87a6d6ea7a
remote-worker: Correctly compute parallelism per worker.
Fixes <https://issues.guix.gnu.org/67502>.

Since ‘run-fibers’ binds each thread to one core by default,
‘current-processor-count’ when called from within ‘run-fibers’ on a
machine with 4 or fewer cores would always return 1.

* src/cuirass/scripts/remote-worker.scm (worker-management-thunk): Add
‘cpu-count’ parameter and use it instead of calling
‘current-processor-count’.
(cuirass-remote-worker): Call ‘current-processor-count’ outside
‘run-fibers’ and pass the result to ‘worker-management-thunk’.
2023-11-28 15:51:38 +01:00
..
cuirass remote-worker: Correctly compute parallelism per worker. 2023-11-28 15:51:38 +01:00
sql
static
web/server
cuirass.scm
schema.sql