hydra-eval-jobset: pass --workers and --max-memory-size to n-e-j

Lost in the h-e-j -> n-e-j migration, causing evaluation to always be
single threaded and limited to 4GiB RAM. Follow the config settings like
h-e-j used to do (via C++ code).
This commit is contained in:
Pierre Bourdon 2024-07-22 23:16:29 +02:00
parent 4b886d9c45
commit 4b107e6ff3
Signed by untrusted user: delroth
GPG key ID: 6FB80DCD84DA0F1C

View file

@ -373,6 +373,8 @@ sub evalJobs {
push @cmd, "--meta"; push @cmd, "--meta";
push @cmd, "--force-recurse"; push @cmd, "--force-recurse";
push @cmd, ("--option", "allow-import-from-derivation", "false") if $config->{allow_import_from_derivation} // "true" ne "true"; push @cmd, ("--option", "allow-import-from-derivation", "false") if $config->{allow_import_from_derivation} // "true" ne "true";
push @cmd, ("--workers", $config->{evaluator_workers} // 1);
push @cmd, ("--max-memory-size", $config->{evaluator_max_memory_size} // 4096);
if (defined $ENV{'HYDRA_DEBUG'}) { if (defined $ENV{'HYDRA_DEBUG'}) {
sub escape { sub escape {