Commit a8e72f12 authored by Leo Gordon's avatar Leo Gordon
Browse files

param_required() now automatically sets transient_error(0) before dying, to...

param_required() now automatically sets transient_error(0) before dying, to avoid unnecessary retries (thanks, Matthieu!)
parent 989dd2c0
......@@ -450,7 +450,13 @@ sub param {
sub param_required {
my $self = shift @_;
return $self->input_job->param_required(@_);
my $prev_transient_error = $self->input_job->transient_error(); # make a note of previously set transience status
$self->input_job->transient_error(0); # make sure if we die in param_required it is not transient
my $value = $self->input_job->param_required(@_);
$self->input_job->transient_error($prev_transient_error); # restore the previous transience status
return $value;
}
sub param_is_defined {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment