Skip to content

Conversation

@d3flex
Copy link
Contributor

@d3flex d3flex commented Oct 21, 2025


if ($retries && $skip_rc && defined $rc && $rc == $skip_rc && $job->retries < $retries) {
$job->app->log->debug("Job @{[$job->id]}: Retrying @{[$job->retries]} times with linear delay: ${delay}s");
$job->app->events->emit('openqa_hook_script_job_restart', [{job_id => $openqa_job_id, minion_id => $job->id}]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the wrong place. There is no openQA job restart happening here. That's the hook script called from the finalize_job_results task. It runs investigation scripts for example.

In the ticket I linked to
https://github.com/os-autoinst/openQA/blob/a802d1dd235bc62d964281a687097c20b0f46cd4/lib/OpenQA/Task/Job/Restart.pm and

my $minion_job_id = OpenQA::App->singleton->gru->enqueue(restart_job => [$openqa_job_id], $options)->{minion_id};

@perlpunk
Copy link
Contributor

I assume this can be closed, see #6816

@perlpunk perlpunk closed this Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants