hydra-evaluator: Fix input change check
Because inputs were processed in random order by inputsToArgs, the inputs hash could be different every time, leading to unnecessary re-evaluations.
This commit is contained in:
@ -277,7 +277,7 @@ sub inputsToArgs {
|
||||
my ($inputInfo, $exprType) = @_;
|
||||
my @res = ();
|
||||
|
||||
foreach my $input (keys %{$inputInfo}) {
|
||||
foreach my $input (sort keys %{$inputInfo}) {
|
||||
push @res, "-I", "$input=$inputInfo->{$input}->[0]->{storePath}"
|
||||
if scalar @{$inputInfo->{$input}} == 1
|
||||
&& defined $inputInfo->{$input}->[0]->{storePath};
|
||||
|
Reference in New Issue
Block a user