Bug 27421: MARC staging/import are long-running tasks

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Tomas Cohen Arazi 2022-09-19 15:33:56 -03:00
parent 5a5536c436
commit d3798e778e
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
3 changed files with 3 additions and 0 deletions

View 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,
queue => 'long_tasks',
});
}

View 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,
queue => 'long_tasks',
});
}

View File

@ -199,6 +199,7 @@ sub enqueue {
$self->SUPER::enqueue({
job_size => 0, # TODO Unknown for now?
job_args => $args,
queue => 'long_tasks',
});
}