From d3798e778e3de71297564fafa0a4c28f2b4dc4b0 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 19 Sep 2022 15:33:56 -0300 Subject: [PATCH] Bug 27421: MARC staging/import are long-running tasks Signed-off-by: Tomas Cohen Arazi --- Koha/BackgroundJob/MARCImportCommitBatch.pm | 1 + Koha/BackgroundJob/MARCImportRevertBatch.pm | 1 + Koha/BackgroundJob/StageMARCForImport.pm | 1 + 3 files changed, 3 insertions(+) diff --git a/Koha/BackgroundJob/MARCImportCommitBatch.pm b/Koha/BackgroundJob/MARCImportCommitBatch.pm index 9b8dd510bd..c2090617d1 100644 --- a/Koha/BackgroundJob/MARCImportCommitBatch.pm +++ b/Koha/BackgroundJob/MARCImportCommitBatch.pm @@ -118,6 +118,7 @@ sub enqueue { $self->SUPER::enqueue({ job_size => Koha::Import::Records->search({ import_batch_id => $args->{import_batch_id} })->count, job_args => $args, + queue => 'long_tasks', }); } diff --git a/Koha/BackgroundJob/MARCImportRevertBatch.pm b/Koha/BackgroundJob/MARCImportRevertBatch.pm index 2f294aa58f..c2c8133281 100644 --- a/Koha/BackgroundJob/MARCImportRevertBatch.pm +++ b/Koha/BackgroundJob/MARCImportRevertBatch.pm @@ -114,6 +114,7 @@ sub enqueue { $self->SUPER::enqueue({ job_size => Koha::Import::Records->search({ import_batch_id => $args->{import_batch_id} })->count, job_args => $args, + queue => 'long_tasks', }); } diff --git a/Koha/BackgroundJob/StageMARCForImport.pm b/Koha/BackgroundJob/StageMARCForImport.pm index 4cd59392fa..206bb8b186 100644 --- a/Koha/BackgroundJob/StageMARCForImport.pm +++ b/Koha/BackgroundJob/StageMARCForImport.pm @@ -199,6 +199,7 @@ sub enqueue { $self->SUPER::enqueue({ job_size => 0, # TODO Unknown for now? job_args => $args, + queue => 'long_tasks', }); } -- 2.39.5