diff --git a/lib/OpenQA/Worker/Job.pm b/lib/OpenQA/Worker/Job.pm index ecf03d01a57..eeafe8517ab 100644 --- a/lib/OpenQA/Worker/Job.pm +++ b/lib/OpenQA/Worker/Job.pm @@ -222,7 +222,13 @@ sub start ($self) { # update settings received from web UI with worker-specific stuff my $worker = $self->worker; my $global_worker_settings = $worker->settings->global_settings; + # apply the time scale factors from both the job settings and the worker settings + my $timeout_scale = $global_worker_settings->{TIMEOUT_SCALE} // 1; + $timeout_scale *= $job_settings->{TIMEOUT_SCALE} // 1; @{$job_settings}{keys %$global_worker_settings} = values %$global_worker_settings; + if ($timeout_scale != 1) { + $job_settings->{TIMEOUT_SCALE} = $timeout_scale; + } # set OPENQA_HOSTNAME environment variable (likely not used anywhere but who knows for sure) my $client = $self->client;