Lines 47-53
my $job_id = Koha::BackgroundJob->enqueue(
Link Here
|
47 |
); |
47 |
); |
48 |
|
48 |
|
49 |
Consumer: |
49 |
Consumer: |
50 |
Koha::BackgrounJobs->find($job_id)->process; |
50 |
Koha::BackgroundJobs->find($job_id)->process; |
51 |
See also C<misc/background_jobs_worker.pl> for a full example |
51 |
See also C<misc/background_jobs_worker.pl> for a full example |
52 |
|
52 |
|
53 |
=head1 API |
53 |
=head1 API |
Lines 386-392
sub _derived_class {
Link Here
|
386 |
|
386 |
|
387 |
=head3 type_to_class_mapping |
387 |
=head3 type_to_class_mapping |
388 |
|
388 |
|
389 |
my $mapping = Koha::BackgrounJob->new->type_to_class_mapping; |
389 |
my $mapping = Koha::BackgroundJob->new->type_to_class_mapping; |
390 |
|
390 |
|
391 |
Returns the available types to class mappings. |
391 |
Returns the available types to class mappings. |
392 |
|
392 |
|
Lines 404-410
sub type_to_class_mapping {
Link Here
|
404 |
|
404 |
|
405 |
=head3 core_types_to_classes |
405 |
=head3 core_types_to_classes |
406 |
|
406 |
|
407 |
my $mappings = Koha::BackgrounJob->new->core_types_to_classes |
407 |
my $mappings = Koha::BackgroundJob->new->core_types_to_classes |
408 |
|
408 |
|
409 |
Returns the core background jobs types to class mappings. |
409 |
Returns the core background jobs types to class mappings. |
410 |
|
410 |
|