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 Dec 21, 2023
1 parent 1f7eb61 commit 5b629c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OpenQA/WebAPI/Plugin/ObsRsync/Controller/Gru.pm
Original file line number Diff line number Diff line change
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 5b629c1

Please sign in to comment.