Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/OpenQA/Worker/Job.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down