Skip to content

Commit

Permalink
ObsRsync: Include URL in GRU task
Browse files Browse the repository at this point in the history
This fascilitates debugging of issues with sync.

See: https://progress.opensuse.org/issues/112871
  • Loading branch information
kalikiana committed Jan 4, 2024
1 parent 1f7eb61 commit 72a516d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/OpenQA/WebAPI/Plugin/ObsRsync/Controller/Gru.pm
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ sub _extend_job_info {

my $args = $job->{args};
$args = $args->[0] if (ref $args eq 'ARRAY' && scalar(@$args) == 1);
if (ref $args eq 'HASH' && scalar(%$args) == 1 && $args->{project}) {
if (ref $args eq 'HASH' && $args->{project}) {
$args = $args->{project};
}
else { $args = dump($args) } # uncoverable statement
Expand Down Expand Up @@ -128,7 +128,7 @@ sub run {
return $self->render(json => {message => 'queue full'}, status => QUEUE_FULL)
if ($results->{total} >= $queue_limit);

$app->gru->enqueue('obs_rsync_run', {project => $project}, {priority => 100});
$app->gru->enqueue('obs_rsync_run', {project => $project, url => $helper->project_status_url}, {priority => 100});

return $self->render(json => {message => 'queued'}, status => QUEUED) if $has_active_job; # uncoverable statement
return $self->render(json => {message => 'started'}, status => STARTED);
Expand Down

0 comments on commit 72a516d

Please sign in to comment.