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

(-)a/Koha/BackgroundJob.pm (-1 / +1 lines)
Lines 53-59 sub enqueue { Link Here
53
            # Also, here we just want the Koha instance's name, but it's not in the config...
53
            # Also, here we just want the Koha instance's name, but it's not in the config...
54
            # Picking a random id (memcached_namespace) from the config
54
            # Picking a random id (memcached_namespace) from the config
55
            my $namespace = C4::Context->config('memcached_namespace');
55
            my $namespace = C4::Context->config('memcached_namespace');
56
            $conn->send_with_receipt( { destination => sprintf("%s-%s", $namespace, $job_type), body => $json_args } )
56
            $conn->send_with_receipt( { destination => sprintf("/queue/%s-%s", $namespace, $job_type), body => $json_args } )
57
              or Koha::Exceptions::Exception->throw('Job has not been enqueued');
57
              or Koha::Exceptions::Exception->throw('Job has not been enqueued');
58
        }
58
        }
59
    );
59
    );
(-)a/misc/background_jobs_worker.pl (-2 / +1 lines)
Lines 27-33 my @job_types = qw( batch_biblio_record_modification batch_authority_record_modi Link Here
27
# FIXME cf note in Koha::BackgroundJob about $namespace
27
# FIXME cf note in Koha::BackgroundJob about $namespace
28
my $namespace = C4::Context->config('memcached_namespace');
28
my $namespace = C4::Context->config('memcached_namespace');
29
for my $job_type ( @job_types ) {
29
for my $job_type ( @job_types ) {
30
    $conn->subscribe({ destination => sprintf("%s-%s", $namespace, $job_type), ack => 'client' });
30
    $conn->subscribe({ destination => sprintf("/queue/%s-%s", $namespace, $job_type), ack => 'client' });
31
}
31
}
32
while (1) {
32
while (1) {
33
    my $frame = $conn->receive_frame;
33
    my $frame = $conn->receive_frame;
34
- 

Return to bug 22417