Bug 27421: MARC staging/import are long-running tasks
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
5a5536c436
commit
d3798e778e
|
|
@ -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',
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -199,6 +199,7 @@ sub enqueue {
|
|||
$self->SUPER::enqueue({
|
||||
job_size => 0, # TODO Unknown for now?
|
||||
job_args => $args,
|
||||
queue => 'long_tasks',
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue