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

(-)a/Koha/BackgroundJob/BatchCancelHold.pm (-3 / +3 lines)
Lines 135-143 sub enqueue { Link Here
135
135
136
    $self->SUPER::enqueue(
136
    $self->SUPER::enqueue(
137
        {
137
        {
138
            job_size => scalar @hold_ids,
138
            job_size  => scalar @hold_ids,
139
            job_args => { hold_ids => \@hold_ids, reason => $args->{reason} },
139
            job_args  => { hold_ids => \@hold_ids, reason => $args->{reason} },
140
            queue    => 'long_tasks',
140
            job_queue => 'long_tasks',
141
        }
141
        }
142
    );
142
    );
143
}
143
}
(-)a/Koha/BackgroundJob/BatchDeleteAuthority.pm (-3 / +3 lines)
Lines 103-111 sub enqueue { Link Here
103
    my @record_ids = @{ $args->{record_ids} };
103
    my @record_ids = @{ $args->{record_ids} };
104
104
105
    $self->SUPER::enqueue({
105
    $self->SUPER::enqueue({
106
        job_size => scalar @record_ids,
106
        job_size  => scalar @record_ids,
107
        job_args => {record_ids => \@record_ids,},
107
        job_args  => {record_ids => \@record_ids,},
108
        queue    => 'long_tasks',
108
        job_queue => 'long_tasks',
109
    });
109
    });
110
}
110
}
111
111
(-)a/Koha/BackgroundJob/BatchDeleteBiblio.pm (-3 / +3 lines)
Lines 192-200 sub enqueue { Link Here
192
    my @record_ids = @{ $args->{record_ids} };
192
    my @record_ids = @{ $args->{record_ids} };
193
193
194
    $self->SUPER::enqueue({
194
    $self->SUPER::enqueue({
195
        job_size => scalar @record_ids,
195
        job_size  => scalar @record_ids,
196
        job_args => {record_ids => \@record_ids,},
196
        job_args  => {record_ids => \@record_ids,},
197
        queue    => 'long_tasks',
197
        job_queue => 'long_tasks',
198
    });
198
    });
199
}
199
}
200
200
(-)a/Koha/BackgroundJob/BatchDeleteItem.pm (-1 / +1 lines)
Lines 237-243 sub enqueue { Link Here
237
                record_ids     => \@record_ids,
237
                record_ids     => \@record_ids,
238
                delete_biblios => $delete_biblios,
238
                delete_biblios => $delete_biblios,
239
            },
239
            },
240
            queue    => 'long_tasks',
240
            job_queue => 'long_tasks',
241
        }
241
        }
242
    );
242
    );
243
}
243
}
(-)a/Koha/BackgroundJob/BatchUpdateAuthority.pm (-3 / +3 lines)
Lines 134-142 sub enqueue { Link Here
134
    my @record_ids = @{ $args->{record_ids} };
134
    my @record_ids = @{ $args->{record_ids} };
135
135
136
    $self->SUPER::enqueue({
136
    $self->SUPER::enqueue({
137
        job_size => scalar @record_ids,
137
        job_size  => scalar @record_ids,
138
        job_args => {mmtid => $mmtid, record_ids => \@record_ids,},
138
        job_args  => {mmtid => $mmtid, record_ids => \@record_ids,},
139
        queue    => 'long_tasks',
139
        job_queue => 'long_tasks',
140
    });
140
    });
141
}
141
}
142
142
(-)a/Koha/BackgroundJob/BatchUpdateBiblio.pm (-3 / +3 lines)
Lines 142-150 sub enqueue { Link Here
142
    return unless exists $args->{record_ids};
142
    return unless exists $args->{record_ids};
143
143
144
    $self->SUPER::enqueue({
144
    $self->SUPER::enqueue({
145
        job_size => scalar @{$args->{record_ids}},
145
        job_size  => scalar @{$args->{record_ids}},
146
        job_args => $args,
146
        job_args  => $args,
147
        queue    => 'long_tasks',
147
        job_queue => 'long_tasks',
148
    });
148
    });
149
}
149
}
150
150
(-)a/Koha/BackgroundJob/BatchUpdateItem.pm (-3 / +3 lines)
Lines 154-162 sub enqueue { Link Here
154
154
155
    $self->SUPER::enqueue(
155
    $self->SUPER::enqueue(
156
        {
156
        {
157
            job_size => scalar @record_ids,
157
            job_size  => scalar @record_ids,
158
            job_args => {%$args},
158
            job_args  => {%$args},
159
            queue    => 'long_tasks',
159
            job_queue => 'long_tasks',
160
        }
160
        }
161
    );
161
    );
162
}
162
}
(-)a/Koha/BackgroundJob/CreateEHoldingsFromBiblios.pm (-3 / +3 lines)
Lines 207-215 sub enqueue { Link Here
207
    return unless exists $args->{record_ids};
207
    return unless exists $args->{record_ids};
208
208
209
    $self->SUPER::enqueue({
209
    $self->SUPER::enqueue({
210
        job_size => scalar @{$args->{record_ids}},
210
        job_size  => scalar @{$args->{record_ids}},
211
        job_args => $args,
211
        job_args  => $args,
212
        queue    => 'long_tasks',
212
        job_queue => 'long_tasks',
213
    });
213
    });
214
}
214
}
215
215
(-)a/Koha/BackgroundJob/MARCImportCommitBatch.pm (-3 / +3 lines)
Lines 116-124 sub enqueue { Link Here
116
    my ( $self, $args) = @_;
116
    my ( $self, $args) = @_;
117
117
118
    $self->SUPER::enqueue({
118
    $self->SUPER::enqueue({
119
        job_size => Koha::Import::Records->search({ import_batch_id => $args->{import_batch_id} })->count,
119
        job_size  => Koha::Import::Records->search({ import_batch_id => $args->{import_batch_id} })->count,
120
        job_args => $args,
120
        job_args  => $args,
121
        queue    => 'long_tasks',
121
        job_queue => 'long_tasks',
122
    });
122
    });
123
}
123
}
124
124
(-)a/Koha/BackgroundJob/MARCImportRevertBatch.pm (-3 / +3 lines)
Lines 112-120 sub enqueue { Link Here
112
    my ( $self, $args) = @_;
112
    my ( $self, $args) = @_;
113
113
114
    $self->SUPER::enqueue({
114
    $self->SUPER::enqueue({
115
        job_size => Koha::Import::Records->search({ import_batch_id => $args->{import_batch_id} })->count,
115
        job_size  => Koha::Import::Records->search({ import_batch_id => $args->{import_batch_id} })->count,
116
        job_args => $args,
116
        job_args  => $args,
117
        queue    => 'long_tasks',
117
        job_queue => 'long_tasks',
118
    });
118
    });
119
}
119
}
120
120
(-)a/Koha/BackgroundJob/StageMARCForImport.pm (-4 / +3 lines)
Lines 197-205 sub enqueue { Link Here
197
    my ( $self, $args) = @_;
197
    my ( $self, $args) = @_;
198
198
199
    $self->SUPER::enqueue({
199
    $self->SUPER::enqueue({
200
        job_size => 0, # TODO Unknown for now?
200
        job_size  => 0, # TODO Unknown for now?
201
        job_args => $args,
201
        job_args  => $args,
202
        queue    => 'long_tasks',
202
        job_queue => 'long_tasks',
203
    });
203
    });
204
}
204
}
205
205
206
- 

Return to bug 32394