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 |
); |