Bugzilla – Attachment 140759 Details for
Bug 27421
Porting tools/stage-marc-import.pl to BackgroundJob
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27421: MARC staging/import are long-running tasks
Bug-27421-MARC-stagingimport-are-long-running-task.patch (text/plain), 1.83 KB, created by
Tomás Cohen Arazi (tcohen)
on 2022-09-19 18:40:43 UTC
(
hide
)
Description:
Bug 27421: MARC staging/import are long-running tasks
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2022-09-19 18:40:43 UTC
Size:
1.83 KB
patch
obsolete
>From d3798e778e3de71297564fafa0a4c28f2b4dc4b0 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >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 <tomascohen@theke.io> >--- > 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.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 27421
:
136127
|
136128
|
136129
|
136216
|
136217
|
136338
|
136339
|
138642
|
138643
|
138656
|
138657
|
138660
|
138881
|
139384
|
139385
|
139386
|
139387
|
139388
|
139448
|
139449
|
139450
|
139797
|
140205
|
140206
|
140207
|
140208
|
140223
|
140224
|
140225
|
140226
|
140227
|
140228
|
140229
|
140230
|
140231
|
140232
|
140233
|
140234
| 140759