View | Details | Raw Unified | Return to bug 30982
Collapse All | Expand All

(-)a/Koha/BackgroundJob.pm (-3 / +3 lines)
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
(-)a/Koha/REST/V1/BackgroundJobs.pm (-1 / +1 lines)
Lines 29-35 use Try::Tiny; Link Here
29
29
30
=head3 list
30
=head3 list
31
31
32
Controller function that handles listing Koha::BackgrounJob objects
32
Controller function that handles listing Koha::BackgroundJob objects
33
33
34
=cut
34
=cut
35
35
(-)a/api/v1/swagger/paths/jobs.yaml (-2 / +1 lines)
Lines 13-19 Link Here
13
        in: query
13
        in: query
14
        required: false
14
        required: false
15
        type: boolean
15
        type: boolean
16
        description: If should filter out not current jobs
16
        description: Only include current jobs
17
      - $ref: "../swagger.yaml#/parameters/match"
17
      - $ref: "../swagger.yaml#/parameters/match"
18
      - $ref: "../swagger.yaml#/parameters/order_by"
18
      - $ref: "../swagger.yaml#/parameters/order_by"
19
      - $ref: "../swagger.yaml#/parameters/page"
19
      - $ref: "../swagger.yaml#/parameters/page"
20
- 

Return to bug 30982