Bug 27421: MARC staging/import are long-running tasks
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 19 Sep 2022 18:33:56 +0000 (15:33 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 19 Sep 2022 18:33:56 +0000 (15:33 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/BackgroundJob/MARCImportCommitBatch.pm
Koha/BackgroundJob/MARCImportRevertBatch.pm
Koha/BackgroundJob/StageMARCForImport.pm

index 9b8dd51..c209061 100644 (file)
@@ -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,
     $self->SUPER::enqueue({
         job_size => Koha::Import::Records->search({ import_batch_id => $args->{import_batch_id} })->count,
         job_args => $args,
+        queue    => 'long_tasks',
     });
 }
 
     });
 }
 
index 2f294aa..c2c8133 100644 (file)
@@ -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,
     $self->SUPER::enqueue({
         job_size => Koha::Import::Records->search({ import_batch_id => $args->{import_batch_id} })->count,
         job_args => $args,
+        queue    => 'long_tasks',
     });
 }
 
     });
 }
 
index 4cd5939..206bb8b 100644 (file)
@@ -199,6 +199,7 @@ sub enqueue {
     $self->SUPER::enqueue({
         job_size => 0, # TODO Unknown for now?
         job_args => $args,
     $self->SUPER::enqueue({
         job_size => 0, # TODO Unknown for now?
         job_args => $args,
+        queue    => 'long_tasks',
     });
 }
 
     });
 }