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

(-)a/misc/workers/background_jobs_worker.pl (-3 / +4 lines)
Lines 90-101 unless (@queues) { Link Here
90
    push @queues, 'default';
90
    push @queues, 'default';
91
}
91
}
92
92
93
my $conn;
93
my ( $conn, $error );
94
try {
94
try {
95
    $conn = Koha::BackgroundJob->connect;
95
    $conn = Koha::BackgroundJob->connect;
96
} catch {
96
} catch {
97
    warn sprintf "Cannot connect to the message broker, the jobs will be processed anyway (%s)", $_;
97
    $error = sprintf "Cannot connect to the message broker, the jobs will be processed anyway (%s)", $_;
98
};
98
};
99
$error ||= "Cannot connect to the message broker, the jobs will be processed anyway" unless $conn;
100
warn $error if $error;
99
101
100
my $pm = Parallel::ForkManager->new($max_processes);
102
my $pm = Parallel::ForkManager->new($max_processes);
101
103
102
- 

Return to bug 34070