From c7de59313b248ee6f6167e8faae47736e7c03d9c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 2 Dec 2022 14:43:27 +0100 Subject: [PATCH] Bug 32394: [22.05.x] Restore long tasks queue We are sending "queue" as parameter, but "job_queue" is retrieved in Koha::BackgroundJob->enqueue... Test plan: Read code and confirm the above. More fun for test plan will be found on bug 32393 Signed-off-by: Tomas Cohen Arazi Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- Koha/BackgroundJob/BatchCancelHold.pm | 6 +++--- Koha/BackgroundJob/BatchDeleteAuthority.pm | 6 +++--- Koha/BackgroundJob/BatchDeleteBiblio.pm | 6 +++--- Koha/BackgroundJob/BatchDeleteItem.pm | 2 +- Koha/BackgroundJob/BatchUpdateAuthority.pm | 6 +++--- Koha/BackgroundJob/BatchUpdateBiblio.pm | 6 +++--- Koha/BackgroundJob/BatchUpdateItem.pm | 6 +++--- 7 files changed, 19 insertions(+), 19 deletions(-) diff --git a/Koha/BackgroundJob/BatchCancelHold.pm b/Koha/BackgroundJob/BatchCancelHold.pm index cf730a6d3fb..421f7b76cf8 100644 --- a/Koha/BackgroundJob/BatchCancelHold.pm +++ b/Koha/BackgroundJob/BatchCancelHold.pm @@ -135,9 +135,9 @@ sub enqueue { $self->SUPER::enqueue( { - job_size => scalar @hold_ids, - job_args => { hold_ids => \@hold_ids, reason => $args->{reason} }, - queue => 'long_tasks', + job_size => scalar @hold_ids, + job_args => { hold_ids => \@hold_ids, reason => $args->{reason} }, + job_queue => 'long_tasks', } ); } diff --git a/Koha/BackgroundJob/BatchDeleteAuthority.pm b/Koha/BackgroundJob/BatchDeleteAuthority.pm index 29c1f5b3ecf..f0688cc6b30 100644 --- a/Koha/BackgroundJob/BatchDeleteAuthority.pm +++ b/Koha/BackgroundJob/BatchDeleteAuthority.pm @@ -103,9 +103,9 @@ sub enqueue { my @record_ids = @{ $args->{record_ids} }; $self->SUPER::enqueue({ - job_size => scalar @record_ids, - job_args => {record_ids => \@record_ids,}, - queue => 'long_tasks', + job_size => scalar @record_ids, + job_args => {record_ids => \@record_ids,}, + job_queue => 'long_tasks', }); } diff --git a/Koha/BackgroundJob/BatchDeleteBiblio.pm b/Koha/BackgroundJob/BatchDeleteBiblio.pm index b87d255a08c..74867c19b6b 100644 --- a/Koha/BackgroundJob/BatchDeleteBiblio.pm +++ b/Koha/BackgroundJob/BatchDeleteBiblio.pm @@ -192,9 +192,9 @@ sub enqueue { my @record_ids = @{ $args->{record_ids} }; $self->SUPER::enqueue({ - job_size => scalar @record_ids, - job_args => {record_ids => \@record_ids,}, - queue => 'long_tasks', + job_size => scalar @record_ids, + job_args => {record_ids => \@record_ids,}, + job_queue => 'long_tasks', }); } diff --git a/Koha/BackgroundJob/BatchDeleteItem.pm b/Koha/BackgroundJob/BatchDeleteItem.pm index d26504d8e27..7e30c6a2af4 100644 --- a/Koha/BackgroundJob/BatchDeleteItem.pm +++ b/Koha/BackgroundJob/BatchDeleteItem.pm @@ -237,7 +237,7 @@ sub enqueue { record_ids => \@record_ids, delete_biblios => $delete_biblios, }, - queue => 'long_tasks', + job_queue => 'long_tasks', } ); } diff --git a/Koha/BackgroundJob/BatchUpdateAuthority.pm b/Koha/BackgroundJob/BatchUpdateAuthority.pm index 23079672ff7..c4625734c5c 100644 --- a/Koha/BackgroundJob/BatchUpdateAuthority.pm +++ b/Koha/BackgroundJob/BatchUpdateAuthority.pm @@ -134,9 +134,9 @@ sub enqueue { my @record_ids = @{ $args->{record_ids} }; $self->SUPER::enqueue({ - job_size => scalar @record_ids, - job_args => {mmtid => $mmtid, record_ids => \@record_ids,}, - queue => 'long_tasks', + job_size => scalar @record_ids, + job_args => {mmtid => $mmtid, record_ids => \@record_ids,}, + job_queue => 'long_tasks', }); } diff --git a/Koha/BackgroundJob/BatchUpdateBiblio.pm b/Koha/BackgroundJob/BatchUpdateBiblio.pm index 40eebba4017..434d4cecda8 100644 --- a/Koha/BackgroundJob/BatchUpdateBiblio.pm +++ b/Koha/BackgroundJob/BatchUpdateBiblio.pm @@ -140,9 +140,9 @@ sub enqueue { return unless exists $args->{record_ids}; $self->SUPER::enqueue({ - job_size => scalar @{$args->{record_ids}}, - job_args => $args, - queue => 'long_tasks', + job_size => scalar @{$args->{record_ids}}, + job_args => $args, + job_queue => 'long_tasks', }); } diff --git a/Koha/BackgroundJob/BatchUpdateItem.pm b/Koha/BackgroundJob/BatchUpdateItem.pm index d389ab97e22..82d27ec34ff 100644 --- a/Koha/BackgroundJob/BatchUpdateItem.pm +++ b/Koha/BackgroundJob/BatchUpdateItem.pm @@ -154,9 +154,9 @@ sub enqueue { $self->SUPER::enqueue( { - job_size => scalar @record_ids, - job_args => {%$args}, - queue => 'long_tasks', + job_size => scalar @record_ids, + job_args => {%$args}, + job_queue => 'long_tasks', } ); } -- 2.25.1